generator

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

Generator will load a API spec file and covert it to corresponding programing code.

func New

func New() *Generator

New creates a generator.

func (*Generator) Clear

func (g *Generator) Clear()

Clear clear the generator's properties.

func (*Generator) Render

func (g *Generator) Render() error

Render coverts API spec data content to programing code.

func (*Generator) Run

func (g *Generator) Run() error

Run will render and write code.

func (*Generator) Set

func (g *Generator) Set(capsule capsules.Capsule, template *templates.Template)

Set set properties of a generator.

func (*Generator) Write

func (g *Generator) Write() error

Write writes the generated code into the target file.

Jump to

Keyboard shortcuts

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