program

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Program

type Program struct {

	// for rendering go src
	TypesAlreadyDefined []string
	FunctionName        string
	Indent              int
	ReturnType          string
	// contains filtered or unexported fields
}

func NewProgram

func NewProgram() *Program

func (*Program) AddImport

func (a *Program) AddImport(name string)

func (*Program) ImportType

func (a *Program) ImportType(name string) string

func (*Program) Imports

func (a *Program) Imports() []string

func (*Program) TypeIsAlreadyDefined added in v0.9.0

func (a *Program) TypeIsAlreadyDefined(typeName string) bool

func (*Program) TypeIsNowDefined added in v0.9.0

func (a *Program) TypeIsNowDefined(typeName string)

Jump to

Keyboard shortcuts

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