xreflect

package module
v0.0.0-...-7f37ac2 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 2 Imported by: 1

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

Jump to

Keyboard shortcuts

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