We love Gin! Ginkit is written in Go and extends the Gin Web Framework with essential features and enhancements to make your life better! If you love Gin, you will love Ginkit.
The key features of Ginkit are:
- easy
- saml auth
- token auth
- template and layout built in
- reverse proxy built in
- simple data wrappers
- auto handling of response data
- oauto support built in
With Go module support, simply add the following import
import "github.com/gokitcloud/ginkit"
to your code, and then go [build|run|test] will automatically fetch the necessary dependencies.
Otherwise, run the following Go command to install the ginkit package:
$ go get -u github.com/gokitcloud/ginkitFirst you need to import Ginkit package for using Gin, and set up the simple example below:
from simple
package main
import (
"github.com/gokitcloud/ginkit"
)
func main() {
r := ginkit.Default()
r.GET("/ping", ginkit.H{
"message": "pong",
})
r.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
}And use the Go command to run the demo:
# run simple.go from the examples/simple directory
# and visit 0.0.0.0:8080/ping on browser
$ go run simple.go
Learn and practice more examples, please read the Ginkit Quick Start which includes API examples and builds tag.
A number of ready-to-run examples demonstrating various use cases of Ginkit in the examples folder.
See API documentation and descriptions for package documentation.
