generator

package
v0.0.0-...-6d2d55a Latest Latest
Warning

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

Go to latest
Published: May 12, 2017 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AVAILABLE_FORMATS = "go|gopkg|swagger|asciidoc|markdown|confluence"
)

Variables

This section is empty.

Functions

func InitParser

func InitParser(controllerClass, ignore string) *parser.Parser

func IsController

func IsController(funcDeclaration *ast.FuncDecl, controllerClass string) bool

It must return true if funcDeclaration is controller. We will try to parse only comments before controllers

func Run

func Run(params Params) error

Types

type Params

type Params struct {
	ApiPackage, MainApiFile, OutputFormat, OutputSpec, ControllerClass, Ignore, VendoringPath, BasePath string
	ContentsTable, Models                                                                               bool
}

Jump to

Keyboard shortcuts

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