pkg

package
v0.0.0-...-09cbfc4 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Converter

func Converter(sqlType string) func(interface{}) interface{}

func CopyStruct

func CopyStruct(src, dst interface{})

func IsZero

func IsZero(val reflect.Value) bool

IsZero assert value is zero value

func SortedParamKeys

func SortedParamKeys(params map[string]interface{}) []string

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 SqlTypeToGoType(sqlType string, nullable bool) string

func Struct2Map

func Struct2Map(obj interface{}) map[string]interface{}

func ToFloat

func ToFloat(p string) float64

func ToInt

func ToInt(p string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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