gen

package
v0.0.0-...-f90b774 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(t Template, w io.Writer) error

func Format

func Format(in io.Reader, out io.Writer) error

func SnakeToCamel

func SnakeToCamel(s string) string

func StripTypeSuffix

func StripTypeSuffix(s string) string

Types

type Body

type Body struct {
	Type string
}

type Function

type Function struct {
	Body           Body
	Name           string
	QueryParams    []QueryParam
	HasQueryParams bool
	HasBody        bool
}

type Import

type Import struct {
	Path string
}

type QueryParam

type QueryParam struct {
	Name string
	Type string
}

type Template

type Template struct {
	PkgName   string
	Functions []Function
	Imports   []Import
}

Jump to

Keyboard shortcuts

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