Here is the canonical "Hello, world" example app for beego:
...
...
@@ -47,3 +47,30 @@ default port:8080
Transfer-Encoding: chunked
hello world
## Router
============
In beego, a route is a struct paired with a URL-matching pattern. The strcut has many method with the same name of http method to server the http request. Each route is associated with a block:
this will serve any files in /static, including files in subdirectories. For example request `/static/logo.gif` or `/static/style/main.css` will server with the file in the path `/pulic/logo.gif` or `/public/style/main.css`