package
0.0.0-20231204091538-5bb4afb30440
Repository: https://github.com/qjpcpu/common.v2.git
Documentation: pkg.go.dev

# Functions

AppendPathToValueFunc to the tail.
FillStruct fill struct, obj must be pointer.
InsertPathToValueFunc to the first.
IsBoolPtrType is *bool.
IsBoolType is bool.
IsFloatPtrType is *float.
IsFloatType is float.
IsIntegerPtrType is *integer.
IsIntegerType is integer.
IsPrimitivePtrType is simple types, *bool,*intx,*uintx,*floatx.
IsPrimitiveType is simple types, bool,intx,uintx,floatx.
IsPtr is pointer.
IsRefType is ref type.
IsStringPtrType is *string.
IsStringType is string.
IsTimePtrType is *time.Time.
IsTimeType is time.Time.
IsUnsignedIntegerPtrType is unsigined *integer.
IsUnsignedIntegerType is unsign integer.
LastNodeOfPath last step node of path.
PickValues pick by path function.
PickValuesByLastNode pick by last field name.
PickValuesByPath pick by full path.
REmail random email.
RLink random link.
RMobile random mobile.
RNumber random number.
RString random string.
RTimestamp random unix timestamp.
SetMaxLevel dfs depth.
SetMaxMapLen map size.
SetMaxSliceLen slice size.
SetPathToValueFunc customize path to value function.
SetSliceLen under certain path.
SplitFieldAndIndex a step like array[1] to (array,1).
TrimFieldIndexSuffix trim step[0] to step.
Walk object.
WalkLeaf call visitFn only when primitive tyeps.
WithSysPVFunc disclose.

# Constants

MapKey of map mark.

# Variables

No description provided by the author

# Structs

VisitCtx context.

# Type aliases

OptionFunc option.
PathHitter return true if you want get the value of certain path.
PathToValueFunc path to value.
ValuePtr of real value.
Values store pick result.
Visitor func.