README ¶ gorest Tool for generating go code based on open api Rationale Why not goa It's fun to design your API with frontend developer together! Odds are he/she knows swagger better than go. Building make Expand ▾ Collapse ▴ Documentation ¶ Overview ¶ Tool for generating REST handlers from OpenAPI (Swagger) specification. Index ¶ func Generate(swaggerFile string, options Options) (err error) type Options Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Generate ¶ func Generate(swaggerFile string, options Options) (err error) Generates go file from swagger specification Types ¶ type Options ¶ type Options struct { // PackageName is the name of the package in the generated code. // If left empty, it defaults to "api". PackageName string // Name for generated file // If left empty, it defaults to stdout. TargetFile string } Options for gorest code generation. Source Files ¶ View all Source files generate.go Directories ¶ Show internal Expand all Path Synopsis cmd gorest gorest/cmd debug main internal barber generator generator/constructors generator/constructors/fields generator/translator spec/openapi3 pkg test api Click to show internal directories. Click to hide internal directories.