gen

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginMode_Recursive = "recursive" // recursively gen for all fields
	PluginMode_Reference = "reference" // would reference the fieldmask to the original package
	PluginMode_All       = "all"       // would generate all the fieldmask for all fields
	PluginMode_Option    = "option"    // would generate the fieldmask for the fields with the option
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Options
	pluginutils.GenerateOptions
}

func (*Generator) ApplyTemplate

func (g *Generator) ApplyTemplate() error

type Options

type Options struct {
	Maxdepth uint64
	Mode     string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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