Documentation ¶
Index ¶
- func B2s(b []byte) string
- func Base64WrapRFC2045(src []byte) (m string)
- func CompareHideString(first, second, hide string) bool
- func Elapsed() interface{ ... }
- func EqualFloat64(f1 interface{}, f2 interface{}) (int, error)
- func ExternalIP() (res []string)
- func FormatJSONStr(str string) string
- func GenFakeEmail(prefix string) string
- func GenFakeMobile() string
- func IP4toUint32(ipAddr string) uint32
- func Interface2Float64(v interface{}) (fv float64, err error)
- func InternalIP() string
- func IsChinese(str string) bool
- func IsPowerOfTwo(x int) bool
- func JsonEncodeByte(v interface{}, escapeHTML ...bool) []byte
- func JsonMarshalByte(v interface{}) []byte
- func JsonMarshalString(v interface{}) string
- func LocalIP() string
- func MD5(src string) string
- func NameOfFunction(f interface{}) string
- func RandStringN(n int, source string) (str string)
- func S2b(s string) []byte
- func SQLXFields(values interface{}) []string
- func Uint32toIP4(ipInt uint32) string
- func Wait(timeout time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64WrapRFC2045 ¶
Base64WrapRFC2045 返回符合 RFC 2045 的Base64 encoded结果(每76个字符添加\n)
func CompareHideString ¶
func EqualFloat64 ¶
EqualFloat64 比较float64 f1 f2可以是字符串或者float64
func IP4toUint32 ¶
func Interface2Float64 ¶
func IsPowerOfTwo ¶
func JsonEncodeByte ¶
func JsonMarshalByte ¶
func JsonMarshalByte(v interface{}) []byte
func JsonMarshalString ¶
func JsonMarshalString(v interface{}) string
func NameOfFunction ¶
func NameOfFunction(f interface{}) string
func SQLXFields ¶
func SQLXFields(values interface{}) []string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.