Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/slicebit/ginger
Core utilities to create a gin app with config, routing, db(qb) and more
https://github.com/slicebit/ginger
Last synced: 4 days ago
JSON representation
Core utilities to create a gin app with config, routing, db(qb) and more
- Host: GitHub
- URL: https://github.com/slicebit/ginger
- Owner: slicebit
- License: mit
- Created: 2018-09-27T18:02:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-26T18:14:20.000Z (almost 6 years ago)
- Last Synced: 2024-11-21T08:17:57.708Z (2 months ago)
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ginger
Core utilities to create a gin app with config, routing, db(qb) and more# Example
```go
package mainimport(
"github.com/slicebit/ginger"
)type Config struct {
Host string
Port int
Env string
}func main() {
config := &Config{}
err := ginger.NewConfig("config.json", config)
if err != nil {
panic(err)
}app, err := ginger.NewApp(config.Host, config.Port, config.Env)
if err != nil {
panic(err)
}// Start the app
app.Start()
}```