generator

package
v0.0.0-...-ff69a66 Latest Latest
Warning

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

Go to latest
Published: May 22, 2014 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	*bytes.Buffer

	EdmxData []byte

	EdmxURL string
	// contains filtered or unexported fields
}

func New

func New(path string) *Generator

TODO path could be URL, file path ...

func (*Generator) Fail

func (g *Generator) Fail(msgs ...string)

Fail reports a problem and exits the program.

func (*Generator) Generate

func (g *Generator) Generate()

func (*Generator) In

func (g *Generator) In()

In Indents the output one tab stop.

func (*Generator) Out

func (g *Generator) Out()

Out unindents the output one tab stop.

func (*Generator) P

func (g *Generator) P(str ...interface{})

P prints the arguments to the generated output. It handles strings and int32s, plus handling indirections because they may be *string, etc.

Jump to

Keyboard shortcuts

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