Documentation ¶
Index ¶
- Variables
- func Construct[T any]() T
- func DefaultStringSearch(fieldName string) []string
- func Endian() binary.ByteOrder
- func GetBool(raw any) bool
- func GetField(source any, field string) (any, error)
- func GetFloat32(input any) float32
- func GetFloat64(input any) float64
- func GetFloatBase(raw any, bitSize int) float64
- func GetInt(input any) int
- func GetInt16(input any) int16
- func GetInt32(input any) int32
- func GetInt64(input any) int64
- func GetInt8(input any) int8
- func GetIntBase(raw any, bitSize int) int64
- func GetProtoTimestampMs(raw any) *timestamppb.Timestamp
- func GetString(raw any) string
- func GetTimestampMs(raw any) *time.Time
- func GetUint(input any) uint
- func GetUint16(input any) uint16
- func GetUint32(input any) uint32
- func GetUint64(input any) uint64
- func GetUint8(input any) uint8
- func GetUintBase(raw any, bitSize int) uint64
- func GetValue(input any) (any, bool)
- func IsNil(input any) bool
- func IsPointer(input any) bool
- func TypeName(v any) string
- func WithMapperFieldSearch(fieldSearch func(string) []string) func(*Mapper) *Mapper
- type Mapper
- func (mapper *Mapper) GetFieldValue(inputMap map[string]interface{}, fieldName string) (interface{}, bool)
- func (mapper *Mapper) PointerHandler(input interface{}, pointerType reflect.Type) reflect.Value
- func (mapper *Mapper) Set(target any, source any) any
- func (mapper *Mapper) SliceHandler(input interface{}, sliceType reflect.Type) reflect.Value
- func (mapper *Mapper) StructHandler(input interface{}, structType reflect.Type) reflect.Value
Constants ¶
This section is empty.
Variables ¶
View Source
var UTC *time.Location
Functions ¶
func DefaultStringSearch ¶
func GetFloat32 ¶
func GetFloat64 ¶
func GetFloatBase ¶
func GetIntBase ¶
func GetProtoTimestampMs ¶
func GetProtoTimestampMs(raw any) *timestamppb.Timestamp
func GetTimestampMs ¶
func GetUintBase ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.