object

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assign

func Assign(ref reflect.Value, name string, value interface{}) error

func Call

func Call(ref interface{}, name string, request []interface{}) (interface{}, error)

func ConvertDateTimeTextWithTimezone

func ConvertDateTimeTextWithTimezone(dateTimeText, sourceFormat, targetFormat string, timezone *time.Location) string

func ConvertDateWithTimezone

func ConvertDateWithTimezone(dateTimeText, targetFormat string, timezone *time.Location) string

func DefaultValue

func DefaultValue(ref reflect.Value, quoted bool) interface{}

func EqualOnNonEmpty

func EqualOnNonEmpty(data, filter interface{}) bool

func Flatten

func Flatten(data interface{}, filter []string) []string

func GenerateRandomText

func GenerateRandomText(n int) string

func GenerateRunningNumbers

func GenerateRunningNumbers() uint32

func Get

func Get(ref reflect.Value) interface{}

func GetStructTags

func GetStructTags(field reflect.StructField) map[string]string

func GetTimeVariableValue

func GetTimeVariableValue(dateTimeText, sourceFormat, targetFormat string, timezone *time.Location) string

func IsEmpty

func IsEmpty(ref reflect.Value) bool

func Iterate

func Iterate(data interface{}, handler func(key string, value interface{}, isempty bool))

func IterateWithDBProp

func IterateWithDBProp(data interface{}, handler func(key string, value interface{}, tags map[string]string, isdefault bool))

func Patch

func Patch(data1, data2 interface{}) error

func Prop

func Prop(ref reflect.Value, prop string) reflect.Value

func Ref

func Ref(obj interface{}) reflect.Value

func SliceContains

func SliceContains(data []string, target string) bool

func SliceNotContains

func SliceNotContains(data []string, target string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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