Skip to content

gokitcloud/ginkit

Repository files navigation

Ginkit Golang Gin Web Framework

Build Status Go Report Card GoDoc Release

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

Getting started

Prerequisites

Getting Ginkit

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/ginkit

Running Ginkit

First 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 more examples

Quick Start

Learn and practice more examples, please read the Ginkit Quick Start which includes API examples and builds tag.

Examples

A number of ready-to-run examples demonstrating various use cases of Ginkit in the examples folder.

Documentation

See API documentation and descriptions for package documentation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages