Documentation
¶
Index ¶
- func Converter(sqlType string) func(interface{}) interface{}
- func CopyStruct(src, dst interface{})
- func IsZero(val reflect.Value) bool
- func SortedParamKeys(params map[string]interface{}) []string
- func SqlTypeToGoType(sqlType string, nullable bool) string
- func Struct2Map(obj interface{}) map[string]interface{}
- func ToFloat(p string) float64
- func ToInt(p string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyStruct ¶
func CopyStruct(src, dst interface{})
func SortedParamKeys ¶
sortedParamKeys Sorts the param names given - map iteration order is explicitly random in Go but we need params in a defined order to avoid unexpected results.
func SqlTypeToGoType ¶
func Struct2Map ¶
func Struct2Map(obj interface{}) map[string]interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.