Documentation ¶
Overview ¶
Package maps implements map utility functions.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseURLQuery ¶
ParseURLQuery returns the map by the params(url query). eg. key1=value1&key2=value2 => map[key1:value1 key2:value2]
Example ¶
package main import ( "fmt" "gopkg.in/goyy/goyy.v0/util/maps" ) func main() { fmt.Println(maps.ParseURLQuery("key1=value1&key2=value2")) fmt.Println(maps.ParseURLQuery("key1=value1")) fmt.Println(maps.ParseURLQuery("key1=")) fmt.Println(maps.ParseURLQuery("=val1")) fmt.Println(maps.ParseURLQuery("=")) fmt.Println(maps.ParseURLQuery("")) fmt.Println(maps.ParseURLQuery(" ")) }
Output: map[key1:value1 key2:value2] map[key1:value1] map[key1:] map[] map[] map[] map[]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.