internal

package
v0.0.0-...-fb0011f Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DoNotEditHeader = "Code generated by %v %v DO NOT EDIT."

Variables

This section is empty.

Functions

func DoGenerate

func DoGenerate(packageNames []string, typeNames []string, mode OutputMode)

Types

type FieldInfo

type FieldInfo struct {
	Name  string
	Field *types.Var
	Tag   *structtag.Tag
}

func (*FieldInfo) OutputName

func (f *FieldInfo) OutputName() string

type FieldSlice

type FieldSlice []FieldInfo

func (FieldSlice) Len

func (f FieldSlice) Len() int

func (FieldSlice) Less

func (f FieldSlice) Less(i, j int) bool

func (FieldSlice) Swap

func (f FieldSlice) Swap(i, j int)

type OutputMode

type OutputMode int
const (
	Normal OutputMode = iota
	Overwrite
	DryRun
)

type PackageGenerator

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

func (*PackageGenerator) Generate

func (pg *PackageGenerator) Generate(typeNames []string, mode OutputMode)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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