conv

package
v0.0.0-...-b1f09d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntPtrTo64

func IntPtrTo64(ptr interface{}) (value int64)

func ObjToInt

func ObjToInt(i interface{}) (int, error)

onj变成数字

func ObjToJson

func ObjToJson(v interface{}) (string, error)

obj 反序列化为字符串

func ObjToMap

func ObjToMap(obj interface{}) (mapObj map[string]interface{}, err error)

函 数:Obj2map 概 要: 参 数:

obj: 传入Obj

返回值:

mapObj: map对象
err: 错误

func ObjToStr

func ObjToStr(i interface{}) string

func StrToMap

func StrToMap(str string) (mapObj map[string]interface{}, err error)

JSON格式数据转换为map

func UintPtrTo64

func UintPtrTo64(ptr interface{}) (value uint64)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL