Skip to content

Anshul619/Template-Service-Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Service-Template-Go

.
├── cmd/                    # Entrypoints for your application (main packages)
│   └── main.go            # `main()` lives here
├── internal/               # Private application and library code
│   ├── config/             # Configuration loading (env, files)
│   ├── handler/            # HTTP / gRPC / CLI handlers
│   ├── service/            # Business logic
│   ├── repository/         # Data access layer (DB, APIs)
│   ├── model/              # Domain models and DTOs
│   ├── middleware/         # HTTP middleware
│   └── utils/              # Utility functions/helpers
├── api/                    # OpenAPI/Protobuf definitions and generated code
│   └── openapi.yaml
├── migrations/             # Database schema migrations (e.g., SQL or tools like goose, migrate)
├── scripts/                # Shell or CI/CD scripts
├── infrastructure/         # Deployment configs (Docker, Kubernetes, etc.)
├── test/                   # Integration tests and test data
├── go.mod
├── go.sum
└── README.md
└── pkg/                    # Contains exported packages intended to be used by other applications or external projects.
└── vendor/                # Holds third-party dependencies, typically copied into your repo using Go Modules (go mod vendor).

Note this is not fully domain driven development layout but its most standard go layout

References

About

This repo contains boilerplate code for microservices development in Golang

Topics

Resources

Stars

Watchers

Forks