jas
jas copied to clipboard
A simple and powerful REST API framework for Go
like /user/:id
Every exported function in a program should have a doc comment. The first sentence should be a summary that starts with the name being declared. From [effective go](https://golang.org/doc/effective_go.html#commentary). I generated...
I have a xml or jpg or html file in the jas bin root path, How to access it?
Some times default value is needed. But I have to use such code with jas. ``` str, err := ctx.FindString(paths...) if err != nil { str = defaultStr } ```...
``` package main import( "github.com/coocood/jas" "net/http" "fmt" "bytes" ) type Add struct {} func (*Add) Get (ctx *jas.Context) { ctx.Data = "hello world" } func (*Add) Post (ctx *jas.Context) {...