gen

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: MIT Imports: 10 Imported by: 76

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.0.1

type Config struct {
	// SearchDir the swag would be parse
	SearchDir string

	//OutputDir represents the output directory for al the generated files
	OutputDir string

	//MainAPIFile the Go file path in which 'swagger general API Info' is written
	MainAPIFile string

	//PropNamingStrategy represents property naming strategy like snakecase,camelcase,pascalcase
	PropNamingStrategy string

	//ParseVendor whether swag should be parse vendor folder
	ParseVendor bool
}

Config presents Gen configurations.

type Gen

type Gen struct {
}

Gen presents a generate tool for swag.

func New

func New() *Gen

New creates a new Gen.

func (*Gen) Build

func (g *Gen) Build(config *Config) error

Build builds swagger json file for gived searchDir and mainAPIFile. Returns json

Jump to

Keyboard shortcuts

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