Initial set of templates
They generate an app with 'serve' and 'migrate' commands.
Showing
- go.mod 7 additions, 1 deletiongo.mod
- go.sum 672 additions, 0 deletionsgo.sum
- logging.go 22 additions, 0 deletionslogging.go
- server.go 501 additions, 0 deletionsserver.go
- server.yaml 36 additions, 5 deletionsserver.yaml
- templates/server/cmd.gotmpl 42 additions, 0 deletionstemplates/server/cmd.gotmpl
- templates/server/cmdMigrate.gotmpl 70 additions, 0 deletionstemplates/server/cmdMigrate.gotmpl
- templates/server/cmdServe.gotmpl 120 additions, 0 deletionstemplates/server/cmdServe.gotmpl
- templates/server/cmdServeConfig.gotmpl 8 additions, 0 deletionstemplates/server/cmdServeConfig.gotmpl
- templates/server/configureapi.gotmpl 32 additions, 8 deletionstemplates/server/configureapi.gotmpl
- templates/server/main.gotmpl 17 additions, 0 deletionstemplates/server/main.gotmpl
- templates/server/migration.gotmpl 6 additions, 0 deletionstemplates/server/migration.gotmpl
... | ... | @@ -3,4 +3,5 @@ |
go 1.14 | ||
require ( | ||
github.com/Masterminds/squirrel v1.4.0 | ||
github.com/getsentry/sentry-go v0.7.0 | ||
... | ... | @@ -6,2 +7,6 @@ |
github.com/getsentry/sentry-go v0.7.0 | ||
github.com/go-openapi/runtime v0.19.21 | ||
github.com/go-openapi/swag v0.19.9 | ||
github.com/golang-migrate/migrate/v4 v4.12.2 | ||
github.com/jmoiron/sqlx v1.2.0 | ||
github.com/json-iterator/go v1.1.6 | ||
... | ... | @@ -7,5 +12,6 @@ |
github.com/json-iterator/go v1.1.6 | ||
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 | ||
github.com/orus-io/go-flags v1.4.0 | ||
github.com/rs/zerolog v1.19.0 | ||
github.com/stretchr/testify v1.6.1 | ||
golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a | ||
... | ... | @@ -8,6 +14,6 @@ |
github.com/orus-io/go-flags v1.4.0 | ||
github.com/rs/zerolog v1.19.0 | ||
github.com/stretchr/testify v1.6.1 | ||
golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a | ||
gotest.tools v2.2.0+incompatible | ||
golang.org/x/net v0.0.0-20200707034311-ab3426394381 | ||
) |
server.go
0 → 100644
templates/server/cmd.gotmpl
0 → 100644
templates/server/cmdMigrate.gotmpl
0 → 100644
templates/server/cmdServe.gotmpl
0 → 100644
templates/server/cmdServeConfig.gotmpl
0 → 100644
templates/server/main.gotmpl
0 → 100644
templates/server/migration.gotmpl
0 → 100644
Please register or sign in to comment