Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepEach1 ¶
func DeepEach1(v interface{}, callback EachCallback) error
func OnlyReadDeepEach1 ¶
func OnlyReadDeepEach1(v interface{}, callback EachCallback) error
Types ¶
type DeepEachInfo ¶
type DeepEachInfo struct {
IsRoot bool
}
type EachCallback ¶
type EachCallback func(rValue reflect.Value, rType reflect.Type, field reflect.StructField) (op EachOperator)
前序遍历,遇到指针跳过指针回调值
type EachOperator ¶
type EachOperator struct {
// contains filtered or unexported fields
}
func (EachOperator) Break ¶
func (op EachOperator) Break() EachOperator
func (EachOperator) Continue ¶
func (op EachOperator) Continue() EachOperator
func (EachOperator) Error ¶
func (op EachOperator) Error(err error) EachOperator
Click to show internal directories.
Click to hide internal directories.