Revel is a high-productivity web framework for the Go language.
$ export $GOPATH=$REVEL_HOME
$ cd $GOPATH
$ revel run github.com/Junbong/go-api-test
Go to http://localhost:9000/ and you'll see:
"It works"
http://localhost:9000/shops/:shop_id/funnels
- URL params
shop_id
: Single shop ID, comma separated multiple shop IDs, or tag
- Query params
from
: Date formatted YYYY-MM-DDto
: Date formatted YYYY-MM-DDprofile
: Comma separated multiple profiles
http://localhost:9000/shops/:shop_id/funnels/average
- URL params
shop_id
: Single shop ID, comma separated multiple shop IDs, or tag
- Query params
from
: Date formatted YYYY-MM-DDto
: Date formatted YYYY-MM-DDprofile
: Comma separated multiple profiles
The directory structure of a generated Revel application:
conf/ Configuration directory
app.conf Main app configuration file
routes Routes definition file
app/ App sources
init.go Interceptor registration
controllers/ App controllers go here
views/ Templates directory
messages/ Message files
public/ Public static assets
css/ CSS files
js/ Javascript files
images/ Image files
tests/ Test suites
- The Getting Started with Revel.
- The Revel guides.
- The Revel sample apps.
- The API documentation.