This is an excellent example of a golang project that has adopted this structure.
go mod download
go build main.go
go test ./...
Generate .env file and edit configuration settings.
cp .env.example .env
go run main.go
Browse to http://localhost:8080/swagger/index.html. You will see Swagger 2.0 Api documents.
Original work authored by Franklin Carrero as MIT licensed and Eder Férnandez Baldovino
MIT Copyright (c) 2021 kiwsan