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

func HeaderTrailerPkg(pkg string) string

func WriteComponentImports

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

func WriteFieldDeclarations

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

func WriteFieldSetters

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

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

func WriteMessageImports

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

func WriteNewComponent

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

func WriteNewMessage

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

func WritePackage

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