How it0dan/golang-studies works
Project type and purpose
• This is a standalone backend REST API service written in Go (“golang-studies”) whose sole purpose is to expose HTTP endpoints (via Gin Gonic) and persist/fetch data to PostgreSQL.
• It is containerized (Docker/Docker Compose) for easy deployment, and uses SQL migrations to initialize its schema.
File structure
• Top-level
• build/ – contains Dockerfile and docker-compose.yaml
• cmd/api/main.go – the application entrypoint
• internal/ – application code not exposed to users
• server/handlers.go – HTTP handler functions
• models/customer.go – domain model definitions
• pkg/db/pgsql/db_conn.go – database connection logic
• migrations/migrations.sql – schema setup
• This follows a typical Go “project layout” with cmd/, internal/ for core logic, pkg/ for reusable packages, and build/ for ops.
README
• Confirms: Gin Gonic REST API + PostgreSQL in container.
• No additional architectural description, so we infer a classic client→API→DB flow.