Documentation
¶
Index ¶
- func AddFilter(pattern string, pos int, filterFunc context.HandlerFunc)
- func Any(rootPath string, fun context.HandlerFunc)
- func Delete(rootPath string, fun context.HandlerFunc)
- func Delims(left, right string)
- func Get(rootPath string, fun context.HandlerFunc)
- func Head(rootPath string, fun context.HandlerFunc)
- func LoadHTMLFiles(files ...string)
- func LoadHTMLGlob(pattern string)
- func Options(rootPath string, fun context.HandlerFunc)
- func Patch(rootPath string, fun context.HandlerFunc)
- func Post(rootPath string, fun context.HandlerFunc)
- func Put(rootPath string, fun context.HandlerFunc)
- func RegisterController(controller interface{}, mapMethods ...string)
- func Run(addr ...string)
- func RunTLS(certFile, keyFile string, addr ...string)
- func SetFuncMap(funcMap template.FuncMap)
- func Static(relativePath, root string)
- func StaticFile(relativePath, filePath string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFilter ¶ added in v0.0.4
func AddFilter(pattern string, pos int, filterFunc context.HandlerFunc)
AddFilter 添加过滤
func RegisterController ¶
func RegisterController(controller interface{}, mapMethods ...string)
RegisterController 注册控制器
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.