###sample-go-api
cd $GOPATH
mkdir -p src/app && cd src/app
git clone [email protected]:andboson/sample-go-api.git .
glide install
go test -v $(glide novendor)
go build -v
####glide
Glide is golang package manager. It is very similar to Composer (PHP package manager).
You must have Glide. See github glide for howto
- github.com/julienschmidt/httprouter - very fast mux\router
- github.com/smartystreets/goconvey - useful library for testing
- github.com/jinzhu/gorm - beautiful orm-library
- github.com/andboson/configlog - library for config and use logfile
Return model api-response
Params:
- `name` Name of model.
####sample request:
request:
{
"name": "test-name"
}
response:
{
"id": 3,
"article": 1007455,
"name": "test-name",
"date": "2016-05-22"
}