gen

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	Endpoint   []byte
	HTTP       []byte
	HTTPTest   []byte
	HTTPClient []byte
	OASv2      []byte
}

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func New

func New(opts Options) *Generator

func (*Generator) Generate

func (g *Generator) Generate(srcFilename, interfaceName, dstPkgName, testFilename string) (content Content, err error)

type Options

type Options struct {
	SchemaPtr         bool
	SchemaTag         string
	TagKeyToSnakeCase bool
	Formatted         bool
	EnableTracing     bool
}

Directories

Path Synopsis
http
chi
util

Jump to

Keyboard shortcuts

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