ToolsOther

package
v0.0.0-...-332b391 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

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 CreateObjFromType(typ reflect.Type) interface{}

func CurrFuncName

func CurrFuncName() string

获取正在运行的函数名

func Distance

func Distance(latA, lngA, latB, lngB float64) float64

func GetObjRefType

func GetObjRefType(obj interface{}) reflect.Type

GetObjRefType 获到对像的类型地址

func GetObjType

func GetObjType(obj interface{}) reflect.Type

GetObjType 获到对像的类型

func GetStack

func GetStack(all bool) string

获取调用堆栈

func JsonToStruct

func JsonToStruct(jsonStr string, structName string) (result []string)

func RowsToStruct

func RowsToStruct(row sql.Rows, structName string) (result string)

生成类型

Types

This section is empty.

Jump to

Keyboard shortcuts

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