Version: v0.0.0-...-d264910 Latest Latest

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

Go to latest
Published: Jun 15, 2016 License: MIT Imports: 10 Imported by: 0



Package genmain provides a generator for a skeleton goa application. This generator generates the code for a basic "main" package and is mainly intended as a way to bootstrap new applications. The generator creates a main.go file and one file per resource listed in the API metadata. If a file already exists it skips its creation unless the flag --force is provided on the command line in which case it overrides the content of existing files.



This section is empty.


This section is empty.


func Generate

func Generate() (files []string, err error)

Generate is the generator entry point called by the meta generator.


type Generator

type Generator struct {
	// contains filtered or unexported fields

Generator is the application code generator.

func (*Generator) Cleanup

func (g *Generator) Cleanup()

Cleanup removes all the files generated by this generator during the last invokation of Generate.

func (*Generator) Generate

func (g *Generator) Generate(api *design.APIDefinition) (_ []string, err error)

Generate produces the skeleton main.

Jump to

Keyboard shortcuts

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