gorest

package module
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: MIT Imports: 4 Imported by: 0

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

Documentation

Overview

Tool for generating REST handlers from OpenAPI (Swagger) specification.

Index

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.

Directories

Path Synopsis
cmd
debug
internal
test
api

Jump to

Keyboard shortcuts

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