Documentation ¶
There is no documentation for this package.
Directories ¶
Path | Synopsis |
---|---|
Package httpheader implements encoding of structs into http.Header fields.
|
Package httpheader implements encoding of structs into http.Header fields. |
Package httpquery struct 编码成 url query 的字符串 As a simple example: type Options struct { Query string `url:"q"` ShowAll bool `url:"all"` Page int `url:"page"` } opt := Options{ "foo", true, 2 } v, _ := query.Values(opt) fmt.Print(v.Encode()) // will output: "q=foo&all=true&page=2" The exact mapping between Go values and url.Values is described in the doc for the Values() function.
|
Package httpquery struct 编码成 url query 的字符串 As a simple example: type Options struct { Query string `url:"q"` ShowAll bool `url:"all"` Page int `url:"page"` } opt := Options{ "foo", true, 2 } v, _ := query.Values(opt) fmt.Print(v.Encode()) // will output: "q=foo&all=true&page=2" The exact mapping between Go values and url.Values is described in the doc for the Values() function. |
Click to show internal directories.
Click to hide internal directories.