Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GenerateOptions ¶
type GenerateOptions struct { Source string Package *Package Interfaces []string Template io.Reader OverridePackage string Imports []*Import Meta map[string]string Functions template.FuncMap }
GenerateOptions are options used to generate code
type ParseOptions ¶
ParseOptions are options used to parse
type Type ¶
type Type interface {
String() string
}
Type is a Google-golang type definition that can be rendered into a valid Google-golang code snippet.
type TypeBuiltin ¶
type TypeBuiltin string
TypeBuiltin is a built in Google-golang type such as "string" or "bool".
func (TypeBuiltin) String ¶
func (t TypeBuiltin) String() string
type TypeExported ¶
TypeExported is a user defined type that is exported from a package.
func (*TypeExported) String ¶
func (t *TypeExported) String() string
type TypePointer ¶
type TypePointer struct {
Type Type
}
TypePointer is a pointer to another type.
func (*TypePointer) String ¶
func (t *TypePointer) String() string
type TypeVariadic ¶
type TypeVariadic struct {
Type Type
}
TypeVariadic is any type that is prefixed by Ellipsis.
func (*TypeVariadic) String ¶
func (t *TypeVariadic) String() string
Click to show internal directories.
Click to hide internal directories.