Minor refactor tackling typos, overhauling README, adding hints about useful resources to README, and avoid any panic/Fatalf from services and init calls #noissue
Some checks failed
/ build (push) Has been cancelled

This commit is contained in:
Varakh 2024-06-03 21:14:05 +02:00
parent 09ed6b1e41
commit f9362525de

View file

@ -27,8 +27,7 @@ Contributions are very welcome!
* Always abort handler chain with `AbortWithError`
* Utils can throw any error
* Repositories, handlers and services should always properly return `error` including any `init`-like function (
best
to avoid them and call in `newXXX`). **Do not abort with `Fatalf` or similar**
best to avoid them and call in `newXXX`). **Do not abort with `Fatalf` or similar**
* `log.Fatalf` or `zap.L().Fatal` is allowed in `environment.go` or `app.go`
* Look into the `_doc/` folder for [OpenAPI specification](./_doc/api.yaml) and a Postman Collection.
* Consider reading [Effective Go](https://go.dev/doc/effective_go)