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 ¶
hs := []Handler{{ Method: "GET", Path: "/a", File: "a.txt", Type: "Text", }} bs, _ := yaml.Marshal(hs) fmt.Println(string(bs))
Output: - method: GET path: /a file: a.txt type: Text
Click to show internal directories.
Click to hide internal directories.