Documentation
¶
Index ¶
- func CopyMap(data map[string]interface{}) map[string]interface{}
- func Escape(src string) string
- func EscapeStyle(src string) string
- func ForInterface(s interface{}, cb func(index int, v interface{}) error) error
- func GetSortedKey(m interface{}) (keys []string)
- func Interface2Slice(s interface{}) (d []interface{})
- func InterfaceToBool(s interface{}) (d bool)
- func InterfaceToStr(s interface{}, escaped ...bool) (d string)
- func UnsafeBytesToStr(z []byte) string
- func UnsafeStrToBytes(s string) (b []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeStyle ¶ added in v0.1.4
EscapeStyle 和 html.EscapeString() 不同, EscapeStyle 不会再替换单引号 ', 因为单引号在style中是合法的.
func ForInterface ¶
func GetSortedKey ¶
func GetSortedKey(m interface{}) (keys []string)
func Interface2Slice ¶
func Interface2Slice(s interface{}) (d []interface{})
func InterfaceToStr ¶
func UnsafeBytesToStr ¶
func UnsafeStrToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.