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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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