deepcopy

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(opts ...GeneratorOption) Generator

NewGenerator generates a Generator with options.

func (Generator) Generate

func (g Generator) Generate(w io.Writer, types []string, p *packages.Package) error

type GeneratorOption

type GeneratorOption func(*Generator)

GeneratorOption is a function to specify option for NewGenerator.

func IsPtrRecv

func IsPtrRecv(f bool) GeneratorOption

IsPtrRecv is an option to specify isPtrRecv.

func WithBuildTags

func WithBuildTags(bts []string) GeneratorOption

WithBuildTags is an option to specify buildTags

func WithMaxDepth

func WithMaxDepth(d int) GeneratorOption

WithMaxDepth is an option to specify maxDepth.

func WithMethodName

func WithMethodName(n string) GeneratorOption

WithMethodName is an option to specify methodName.

func WithSkipLists

func WithSkipLists(sl SkipLists) GeneratorOption

WithSkipLists is an option to specify skipLists

type SkipLists

type SkipLists []map[string]struct{}

func (SkipLists) Get

func (l SkipLists) Get(i int) (s skips)

Jump to

Keyboard shortcuts

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