Documentation ¶
Overview ¶
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.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Generator ¶
type Generator struct { API *design.APIDefinition // The API definition OutDir string // Path to output directory DesignPkg string // Path to design package, only used to mark generated files. Target string // Name of generated "app" package Force bool // Whether to override existing files // contains filtered or unexported fields }
Generator is the application code generator.
Click to show internal directories.
Click to hide internal directories.