web

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 Any

func Any(rootPath string, fun context.HandlerFunc)

Any 任何请求

func Delete

func Delete(rootPath string, fun context.HandlerFunc)

Delete 请求

func Delims

func Delims(left, right string)

Delims

func Get

func Get(rootPath string, fun context.HandlerFunc)

Get 请求

func Head(rootPath string, fun context.HandlerFunc)

Head 请求

func LoadHTMLFiles

func LoadHTMLFiles(files ...string)

LoadHTMLFiles

func LoadHTMLGlob

func LoadHTMLGlob(pattern string)

LoadHTMLGlob

func Options

func Options(rootPath string, fun context.HandlerFunc)

Options 请求

func Patch

func Patch(rootPath string, fun context.HandlerFunc)

Patch 请求

func Post

func Post(rootPath string, fun context.HandlerFunc)

Post 请求

func Put

func Put(rootPath string, fun context.HandlerFunc)

Put 请求

func RegisterController

func RegisterController(controller interface{}, mapMethods ...string)

RegisterController 注册控制器

func Run

func Run()

Run 启动

func SetFuncMap

func SetFuncMap(funcMap template.FuncMap)

SetFuncMap

func Static

func Static(relativePath, root string)

Static 静态目录

func StaticFile

func StaticFile(relativePath, filePath string)

StaticFile 静态文件

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL