Documentation ¶
Index ¶
- type Arguments
- type BuiltinType
- type Criterion
- type CustomType
- type Generator
- func (g *Generator) AddImport(i string) *Generator
- func (g *Generator) Generate(s *pqt.Schema) ([]byte, error)
- func (g *Generator) GenerateTo(s *pqt.Schema, w io.Writer) error
- func (g *Generator) SetAcronyms(acronyms map[string]string) *Generator
- func (g *Generator) SetImports(imports ...string) *Generator
- func (g *Generator) SetPackage(pkg string) *Generator
- type PlaceholderWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct {
// contains filtered or unexported fields
}
Arguemnts ...
func NewArguments ¶
NewArguments allocates new Arguments object with given size.
type BuiltinType ¶
BuiltinType ...
func (BuiltinType) Fingerprint ¶
func (bt BuiltinType) Fingerprint() string
Fingerprint implements Type interface.
func (BuiltinType) String ¶
func (bt BuiltinType) String() string
type Criterion ¶
type Criterion interface {
Criteria(*bytes.Buffer, *PlaceholderWriter, *Arguments, string) (int64, error)
}
Criterion ...
type CustomType ¶
type CustomType struct {
// contains filtered or unexported fields
}
CustomType ...
func (CustomType) Fingerprint ¶
func (ct CustomType) Fingerprint() string
Fingerprint implements Type interface.
func (CustomType) String ¶
func (ct CustomType) String() string
String implements Stringer interface.
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator ...
func (*Generator) GenerateTo ¶
GenerateTo ...
func (*Generator) SetAcronyms ¶
SetAcronyms ...
func (*Generator) SetImports ¶
SetImports ...
type PlaceholderWriter ¶
type PlaceholderWriter struct {
// contains filtered or unexported fields
}
PlaceholderWriter ...
Click to show internal directories.
Click to hide internal directories.