gin_template

command module
v0.0.0-...-c0a108e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2019 License: MIT Imports: 11 Imported by: 0

README

gin_template

Gin structure for go devs

Why we need it:

When building my own website: http://mroomsoft.com. It takes me hours (maybe days :) ) to design a good structure for API. I must repeat the steps I have done before, it's really bullsh*t. That's why I need to do something. Let's check out this repository and see how long we take to make a web service.

Requirements:

  • Golang
  • Dep

How to run:

  • go get -u github.com/trongdth/gin_template
  • cd $GOPATH/src/github.com/trongdth/gin_template
  • dep ensure
  • mv config/conf.json.example config/conf.json (here is my sample config)
    {
        "env": "localhost",
        "port": 8000,
        "db": "root:@tcp(localhost:3306)/mroom_software?charset=utf8&parseTime=True&loc=UTC",
        "token_secret_key": "mroom_software"
    }

Congratulation!

P/S: if there are any issues, don't hesitate to contact me at trongdinh@mroomsoft.com

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL