walkertype

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package walkertype walks types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Walk added in v1.1.4

func Walk(options *WalkOptions) interface{}

https://gist.github.com/hvoecking/10772475

func WalkRecursive added in v1.1.4

func WalkRecursive(options *WalkRecursiveOptions)

Types

type OnKind added in v1.1.4

type OnKind func(*OnKindOptions) *OnKindWalkReturn

type OnKindOptions added in v1.1.4

type OnKindOptions struct {
	CaseKind reflect.Kind
	Copy     reflect.Value
	Original reflect.Value
}

type OnKindWalkReturn added in v1.1.4

type OnKindWalkReturn struct {
	Handled bool
}

type OnMapKey added in v1.1.4

type OnMapKey func(*OnMapKeyOptions) *OnKindWalkReturn

Is called on only key of maps

type OnMapKeyOptions added in v1.1.4

type OnMapKeyOptions struct {
	Key       reflect.Value
	Copy      reflect.Value
	Original  reflect.Value
	ValueCopy reflect.Value
}

type WalkOptions added in v1.1.4

type WalkOptions struct {
	Object interface{}
	OnKind OnKind
	// Only key of maps
	OnMapKey OnMapKey
}

type WalkRecursiveOptions added in v1.1.4

type WalkRecursiveOptions struct {
	Copy     reflect.Value
	Original reflect.Value
	OnKind   OnKind
	OnMapKey OnMapKey
}

Jump to

Keyboard shortcuts

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