Documentation ¶
Index ¶
- Variables
- func AnyConvert[T any](v any) T
- func ConvertInt64(v interface{}) int64
- func SetFieldByString(value string, field reflect.Value) error
- func SetStructFieldByString(field, value string, dst any) error
- func String(value reflect.Value) string
- func StringConvert(value string, kind reflect.Kind) (any, error)
- type Converter
Constants ¶
This section is empty.
Variables ¶
View Source
var ConverterArrays = []Converter{ reflect.Bool: convertBool, reflect.Int: convertInt, reflect.Int8: convertInt8, reflect.Int16: convertInt16, reflect.Int32: convertInt32, reflect.Int64: convertInt64, reflect.Uint: convertUint, reflect.Uint8: convertUint8, reflect.Uint16: convertUint16, reflect.Uint32: convertUint32, reflect.Uint64: convertUint64, reflect.Float32: convertFloat32, reflect.Float64: convertFloat64, reflect.String: convertString, }
Functions ¶
func AnyConvert ¶
func ConvertInt64 ¶
func ConvertInt64(v interface{}) int64
func SetStructFieldByString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.