Documentation ¶
Index ¶
- type Enum
- func (m *Enum) ConstKey(key interface{}) string
- func (m *Enum) ConstOffset() string
- func (m *Enum) ConstPrefix() string
- func (m *Enum) ConstUnknown() string
- func (m *Enum) InvalidError() string
- func (m *Enum) String() string
- func (m *Enum) WriteAll(w io.Writer)
- func (m *Enum) WriteEnumDescriptor(w io.Writer)
- func (m *Enum) WriteInitFunc(w io.Writer)
- func (m *Enum) WriteLabeler(w io.Writer)
- func (m *Enum) WriteParseXFromLabelString(w io.Writer)
- func (m *Enum) WriteParseXFromString(w io.Writer)
- func (m *Enum) WriteScannerAndValuer(w io.Writer)
- func (m *Enum) WriteStringer(w io.Writer)
- func (m *Enum) WriteTextMarshalerAndUnmarshaler(w io.Writer)
- func (m *Enum) WriteVars(writer io.Writer)
- type EnumGenerator
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 (*Enum) ConstOffset ¶
func (*Enum) ConstPrefix ¶
func (*Enum) ConstUnknown ¶
func (*Enum) InvalidError ¶
func (*Enum) WriteEnumDescriptor ¶
func (*Enum) WriteInitFunc ¶
func (*Enum) WriteLabeler ¶
func (*Enum) WriteParseXFromLabelString ¶
func (*Enum) WriteParseXFromString ¶
func (*Enum) WriteScannerAndValuer ¶
func (*Enum) WriteStringer ¶
func (*Enum) WriteTextMarshalerAndUnmarshaler ¶
type EnumGenerator ¶
type EnumGenerator struct { Filters []string // contains filtered or unexported fields }
func (*EnumGenerator) Load ¶
func (g *EnumGenerator) Load(cwd string)
func (*EnumGenerator) Pick ¶
func (g *EnumGenerator) Pick()
Click to show internal directories.
Click to hide internal directories.