pqtgo

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

func NewArguments(l int) *Arguments

NewArguments allocates new Arguments object with given size.

func (*Arguments) Add

func (a *Arguments) Add(arg interface{})

Add appends list with new element.

func (*Arguments) Len

func (a *Arguments) Len() int64

Len returns number of arguments.

func (*Arguments) Slice

func (a *Arguments) Slice() []interface{}

Slice returns all arguments stored as a slice.

type BuiltinType

type BuiltinType types.BasicKind

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 TypeCustom

func TypeCustom(m, o, c interface{}) CustomType

TypeCustom ...

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 NewGenerator

func NewGenerator() *Generator

NewGenerator ...

func (*Generator) AddImport

func (g *Generator) AddImport(i string) *Generator

AddImport ...

func (*Generator) Generate

func (g *Generator) Generate(s *pqt.Schema) ([]byte, error)

Generate ...

func (*Generator) GenerateTo

func (g *Generator) GenerateTo(s *pqt.Schema, w io.Writer) error

GenerateTo ...

func (*Generator) SetAcronyms

func (g *Generator) SetAcronyms(acronyms map[string]string) *Generator

SetAcronyms ...

func (*Generator) SetImports

func (g *Generator) SetImports(imports ...string) *Generator

SetImports ...

func (*Generator) SetPackage

func (g *Generator) SetPackage(pkg string) *Generator

SetPackage ...

type PlaceholderWriter

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

PlaceholderWriter ...

func NewPlaceholderWriter

func NewPlaceholderWriter() *PlaceholderWriter

NewPlaceholderWriter ...

func (*PlaceholderWriter) Count

func (pw *PlaceholderWriter) Count() int64

Count ...

func (*PlaceholderWriter) WriteTo

func (pw *PlaceholderWriter) WriteTo(buf *bytes.Buffer) (int64, error)

WriteTo implements io WriterTo interface.

Jump to

Keyboard shortcuts

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