generators

package
v0.0.0-...-dd21699 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFile

func GenerateFile(gen *protogen.Plugin, file *protogen.File) (*protogen.GeneratedFile, error)

func NewApiGenerator

func NewApiGenerator() app.Generator

Types

type PathParam

type PathParam struct {
	Index  int
	Name   string
	GoName string
}

func (*PathParam) GetGoNamesWithSplit

func (t *PathParam) GetGoNamesWithSplit() []string

type PathParamArr

type PathParamArr []*PathParam

func (PathParamArr) Len

func (p PathParamArr) Len() int

func (PathParamArr) Less

func (p PathParamArr) Less(i, j int) bool

func (PathParamArr) Swap

func (p PathParamArr) Swap(i, j int)

Jump to

Keyboard shortcuts

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