Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { Method string // GET POST PUT DELETE Path string // 路径 File string // 文件 Type string // Binary,Text,HTML,JSON,JSONP,XML // contains filtered or unexported fields }
Handler 句柄.
Example ¶
handler := []webs.Handler{{ Method: "GET", Path: "/a", File: "a.txt", Type: "Text", }} data, _ := yaml.Marshal(handler) fmt.Println(string(data))
Output: - method: GET path: /a file: a.txt type: Text
Click to show internal directories.
Click to hide internal directories.