go-rest-api
go-rest-api copied to clipboard
An idiomatic Go REST API starter kit (boilerplate) following the SOLID principles and Clean Architecture
**Describe the bug** I'd like to use my local mysql instead of Docker postgresql, so I used this in `local.yml`: `dsn: "mysql://127.0.0.1:3306/mydb?sslmode=disable&user=myuser&password=mypassword" ` **To Reproduce** Steps to reproduce the behavior:...
**Describe the bug** 关于routing.GracefulShutdown 无效 **To Reproduce** Steps to reproduce the behavior: 1.设置routing.GracefulShutdown 返回timeout = 5s 2.设置接口 /healthcheck 延迟 3s 3.make build 构建项目 并运行 **Expected behavior** 请求/healthcheck 接口 马上通过control+c 关闭程序...
You are implementing the wrong clean architecture. Because each layer depends on. For example, you depend on [ozzo-routing](github.com/go-ozzo/ozzo-routing). Your repository depend library database. Logic and framework, library not independent. If...
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd...
Hi! Why we don't `defer logger.Sync()`? ``` func ExampleNewStdLog() { logger := zap.NewExample() defer logger.Sync() std := zap.NewStdLog(logger) std.Print("standard logger wrapper") // Output: // {"level":"info","msg":"standard logger wrapper"} } ```
If we need colored output on windows console we need to replace `New()` function: ``` // New creates a new logger using the default configuration. func New() Logger { l,...
Hi! Please provide en complex example about using treansactional in services. Existing example in readme is very abstract... ( Thanks!
I think not a good solution to use `UUID` `v.4`, instead `v.1`. What do you think about this? And what type is better golang `string` mysql `char(36)` or golang `uuid.UUID`...