Skip to content

slicebit/ginger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ginger

Core utilities to create a gin app with config, routing, db(qb) and more

Example

package main

import(
    "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()
}

About

Core utilities to create a gin app with config, routing, db(qb) and more

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages