generator

package
v0.0.0-...-9a64e21 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2018 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AVAILABLE_FORMATS = "go|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 string
}

Jump to

Keyboard shortcuts

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