Documentation
¶
Index ¶
- func ConcatWithUrlEncode(param map[string]string) bytes.Buffer
- func LocalIP() string
- func MapStringToStruct(m map[string]string, i interface{}) error
- func ParseResponseMsg(resp []byte) (map[string]string, error)
- func PrintMap(m map[string]string)
- func RandomStr() string
- func SortAndConcat(param map[string]string) string
- func UrlDecode(str string) (string, error)
- func UrlEncode(str string) string
- func XmlToMap(xmlData []byte) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConcatWithUrlEncode ¶
ConcatWithUrlEncode concat the map to form of "k1=v1&k2=v2" and ensure "v1,v2" is Url encoded
func MapStringToStruct ¶
func ParseResponseMsg ¶
ParseResponseMsg parse the response message in form of "k1=v1&k2=v2" to a map
func SortAndConcat ¶
SortAndConcat sort the map by key in ASCII order, and concat it in form of "k1=v1&k2=2"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.