gen

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2016 License: Apache-1.1 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeaderTrailerPkg added in v0.2.0

func HeaderTrailerPkg(pkg string) string

func WriteComponentImports added in v0.2.0

func WriteComponentImports(writer io.Writer, pkg string, parts []datadictionary.MessagePart) error

func WriteFieldDeclarations added in v0.2.0

func WriteFieldDeclarations(fixSpecMajor int, fixSpecMinor int, parts []datadictionary.MessagePart, componentName string) (s string)

func WriteFieldSetters added in v0.2.0

func WriteFieldSetters(writer io.Writer, receiver string, parts []datadictionary.MessagePart) error

WriteFieldSetters generates setters appropriate for Messages, Components or Repeating Groups

func WriteFile

func WriteFile(filePath, fileOut string)

func WriteGroupDeclaration added in v0.2.0

func WriteGroupDeclaration(fixSpecMajor, fixSpecMinor int, field *datadictionary.FieldDef, parent string) (fileOut string)

func WriteMessageImports added in v0.2.0

func WriteMessageImports(writer io.Writer, pkg string, parts []datadictionary.MessagePart) error

func WriteNewComponent added in v0.2.0

func WriteNewComponent(writer io.Writer, comp datadictionary.ComponentType) error

func WriteNewMessage added in v0.2.0

func WriteNewMessage(writer io.Writer, msg datadictionary.MessageDef) error

func WritePackage added in v0.2.0

func WritePackage(writer io.Writer, pkg string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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