README ¶ go-template go-skeleton-lido How to use the template Clone repository cd root repository make tools make vendor copy sample.env to .env docker-compose up -d make migrate make build Run service ./bin/service How to create migrations? ./bin/migrate create -ext=sql -dir=db/migrations How to make migrations? make migrate from terminal or bin/migrate -database ${POSTGRESQL_URL} -path db/migrations up Where I have to start to code my custom logic? Register handler Logic layer: /internal/pkg/your_package_name/. Just see an example with User package Env Connecters pg, logger, redis and etc... For external clients you have to create folder in ./internal/clients/<your_client_name>/client.go where your_client_name - is google_client, alchemy or internal client for private network. Docs and rules App structure layout Code style Current drivers or dependencies Postgres - pgx Logger - Logrus Mockery Mockery Http router gorilla_mux. Of course your can change it for example to Gin Env reader Viper Expand ▾ Collapse ▴ Directories ¶ Show internal Expand all Path Synopsis cmd fan_out migrator service shared_memory worker internal app/http_server connectors/logger connectors/metrics connectors/postgres env http/handlers/health http/handlers/user_example pkg/users pkg/users/entity pkg/users/mocks pkg/users/repository pkg/users/usecase utils/deps Click to show internal directories. Click to hide internal directories.