Documentation
¶
Index ¶
- func Copy(src interface{}) interface{}
- func CopyStruct(src, dst interface{})
- func DeepFields(ifaceType reflect.Type) []reflect.StructField
- func JsonMarshal(value map[string]interface{}) (string, error)
- func JsonUnMarshal(value string) (map[string]interface{}, error)
- func Set2List(s []interface{}) []string
- func StructCopy(DstStructPtr interface{}, SrcStructPtr interface{})
- func ToString(obj interface{}) (string, error)
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶ added in v0.1.26
func Copy(src interface{}) interface{}
Copy creates a deep copy of whatever is passed to it and returns the copy in an interface{}. The returned value will need to be asserted to the correct type.
func CopyStruct ¶
func CopyStruct(src, dst interface{})
func DeepFields ¶
func DeepFields(ifaceType reflect.Type) []reflect.StructField
func JsonMarshal ¶
The default behavior is to escape &, <, and > to \u0026, \u003c, and \u003e to avoid certain safety problems that can arise when embedding JSON in HTML.
func JsonUnMarshal ¶
func StructCopy ¶
func StructCopy(DstStructPtr interface{}, SrcStructPtr interface{})
Types ¶
Click to show internal directories.
Click to hide internal directories.