Versions in this module Expand all Collapse all v0 v0.1.0 Apr 14, 2024 v0.0.10 Apr 14, 2024 Changes in this version + func AnyIsNil(v any) bool + func CloneToType(typ reflect.Type, val any) reflect.Value + func CopyMapRobust(to, from any) error + func CopySliceRobust(to, from any) error + func FormatDefault(def string) string + func FriendlyTypeName(typ reflect.Type) string + func KindIsBasic(vk reflect.Kind) bool + func LongTypeName(typ reflect.Type) string + func MapAdd(mv any) + func MapDelete(mv any, key reflect.Value) + func MapDeleteAll(mv any) + func MapKeyType(mp any) reflect.Type + func MapSort(mp any, byKey, ascending bool) []reflect.Value + func MapValueSort(mpvnp reflect.Value, keys []reflect.Value, ascending bool) error + func MapValueType(mp any) reflect.Type + func NonDefaultFields(v any) map[string]any + func NonPointerType(typ reflect.Type) reflect.Type + func NonPointerValue(v reflect.Value) reflect.Value + func NumAllFields(typ reflect.Type) int + func NumMapStructElements(mp any) int + func OnePointerType(typ reflect.Type) reflect.Type + func OnePointerUnderlyingValue(v reflect.Value) reflect.Value + func OnePointerValue(v reflect.Value) reflect.Value + func PointerType(typ reflect.Type) reflect.Type + func PointerValue(v reflect.Value) reflect.Value + func SetFromDefaultTag(v reflect.Value, def string) error + func SetFromDefaultTags(obj any) error + func SetMapRobust(mp, ky, val reflect.Value) bool + func SetRobust(to, from any) error + func ShortTypeName(typ reflect.Type) string + func SliceDeleteAt(sl any, idx int) + func SliceElementType(sl any) reflect.Type + func SliceElementValue(sl any) reflect.Value + func SliceNewAt(sl any, idx int) + func SliceSort(sl any, ascending bool) error + func StringJSON(v any) string + func StructSliceSort(structSlice any, fieldIndex []int, ascending bool) error + func StructTags(tags reflect.StructTag) map[string]string + func ToBool(v any) (bool, error) + func ToFloat(v any) (float64, error) + func ToFloat32(v any) (float32, error) + func ToInt(v any) (int64, error) + func ToString(v any) string + func ToStringPrec(v any, prec int) string + func ValueSliceSort(sl []reflect.Value, ascending bool) error + func WalkMapElements(mp any, fun func(mp any, typ reflect.Type, key, val reflect.Value) bool) bool + func WalkMapStructElements(mp any, fun func(mp any, typ reflect.Type, val reflect.Value) bool) bool + func WalkTypeAllFields(typ reflect.Type, fun func(typ reflect.Type, field reflect.StructField) bool) bool + func WalkTypeFlatFields(typ reflect.Type, fun func(typ reflect.Type, field reflect.StructField) bool) bool + func WalkTypeFlatFieldsIf(typ reflect.Type, ...) bool + func WalkValueFlatFields(stru any, ...) bool + func WalkValueFlatFieldsIf(stru any, ...) bool + type Inter interface + Int func() int64 + type SetAnyer interface + SetAny func(v any) error + type SetStringer interface + SetString func(s string) error