Documentation ¶
Index ¶
- func CreateObjFromObj(ImplObj interface{}) interface{}
- func CreateObjFromType(typ reflect.Type) interface{}
- func CurrFuncName() string
- func Distance(latA, lngA, latB, lngB float64) float64
- func GetObjRefType(obj interface{}) reflect.Type
- func GetObjType(obj interface{}) reflect.Type
- func GetStack(all bool) string
- func JsonToStruct(jsonStr string, structName string) (result []string)
- func RowsToStruct(row sql.Rows, structName string) (result string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateObjFromObj ¶
func CreateObjFromObj(ImplObj interface{}) interface{}
CreateObjFromObj 根据已知的类型,创建一个对像,其实相当于创建了一个相同类型的对像,参数其实是个对像 Type XXXX struct{} aa := CreateObjFromType(XXXX{}) 反回值 aa.(*XXXX) 转换
func CreateObjFromType ¶
func JsonToStruct ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.