gen

package
v0.0.0-...-61829c1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Enum

type Enum struct {
	ImportPath string
	PkgName    string
	Name       string
	Options    gen.Enum
	Importer   *codegen.Importer
	HasOffset  bool
}

func NewEnum

func NewEnum(importPath, pkgName, name string, options gen.Enum, hasOffset bool) *Enum

func (*Enum) ConstKey

func (m *Enum) ConstKey(key interface{}) string

func (*Enum) ConstOffset

func (m *Enum) ConstOffset() string

func (*Enum) ConstPrefix

func (m *Enum) ConstPrefix() string

func (*Enum) ConstUnknown

func (m *Enum) ConstUnknown() string

func (*Enum) InvalidError

func (m *Enum) InvalidError() string

func (*Enum) String

func (m *Enum) String() string

func (*Enum) WriteAll

func (m *Enum) WriteAll(w io.Writer)

func (*Enum) WriteEnumDescriptor

func (m *Enum) WriteEnumDescriptor(w io.Writer)

func (*Enum) WriteInitFunc

func (m *Enum) WriteInitFunc(w io.Writer)

func (*Enum) WriteLabeler

func (m *Enum) WriteLabeler(w io.Writer)

func (*Enum) WriteParseXFromLabelString

func (m *Enum) WriteParseXFromLabelString(w io.Writer)

func (*Enum) WriteParseXFromString

func (m *Enum) WriteParseXFromString(w io.Writer)

func (*Enum) WriteScannerAndValuer

func (m *Enum) WriteScannerAndValuer(w io.Writer)

func (*Enum) WriteStringer

func (m *Enum) WriteStringer(w io.Writer)

func (*Enum) WriteTextMarshalerAndUnmarshaler

func (m *Enum) WriteTextMarshalerAndUnmarshaler(w io.Writer)

func (*Enum) WriteVars

func (m *Enum) WriteVars(writer io.Writer)

type EnumGenerator

type EnumGenerator struct {
	Filters []string
	// contains filtered or unexported fields
}

func (*EnumGenerator) Load

func (g *EnumGenerator) Load(cwd string)

func (*EnumGenerator) Output

func (g *EnumGenerator) Output(cwd string) codegen.Outputs

func (*EnumGenerator) Pick

func (g *EnumGenerator) Pick()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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