Documentation
¶
Index ¶
- func Exist(key string, h map[string]interface{}) bool
- func Exists(keys []string, h map[string]interface{}) bool
- func GenRandomBytes(size int) (blk []byte, err error)
- func GetCurrentPath() (string, error)
- func LogInterface(i interface{}) string
- func MD5(data []byte) string
- func PanicWrapper(f func())
- func ParseJson(data []byte) map[string]interface{}
- func ParseJsonV2(reader io.Reader) map[string]interface{}
- func ParseJsonV3(data []byte, dest interface{}) error
- func ParseJsonV4(reader io.Reader, dest interface{}) error
- func ReplaceAll(str string, expr string, replaceStr string) string
- func ToJson(object interface{}) string
- func ToJsonByte(object interface{}) []byte
- func ToSimpleJson(object interface{}) *simplejson.Json
- func UnGzip(gzipData []byte) ([]byte, error)
- func UnGzipV2(gzipData io.Reader) (io.Reader, error)
- type ByLenSort
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenRandomBytes ¶
func GetCurrentPath ¶
func LogInterface ¶
func LogInterface(i interface{}) string
func PanicWrapper ¶
func PanicWrapper(f func())
func ParseJsonV2 ¶
func ParseJsonV3 ¶
func ParseJsonV4 ¶
func ToJsonByte ¶
func ToJsonByte(object interface{}) []byte
func ToSimpleJson ¶
func ToSimpleJson(object interface{}) *simplejson.Json
Types ¶
Click to show internal directories.
Click to hide internal directories.