plugin

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnabledEnumErrorCode

func EnabledEnumErrorCode(e *protogen.Enum) bool

func EnabledEnumGqlGen

func EnabledEnumGqlGen(f *protogen.File, e *protogen.Enum) bool

func EnabledEnumJsonMarshal

func EnabledEnumJsonMarshal(f *protogen.File, e *protogen.Enum) bool

func EnabledEnumNumOrder

func EnabledEnumNumOrder(e *protogen.Enum) bool

func EnabledEnumStringer

func EnabledEnumStringer(e *protogen.Enum) bool

func EnabledGoEnumPrefix

func EnabledGoEnumPrefix(f *protogen.File, e *protogen.Enum) bool

func GetEnumType

func GetEnumType(e *protogen.Enum) string

func GetEnumValueCN

func GetEnumValueCN(ev *protogen.EnumValue) string

func TurnOffEnumValueMap added in v1.2.1

func TurnOffEnumValueMap(e *protogen.Enum) bool

func TurnOffExtGen added in v1.2.1

func TurnOffExtGen(e *protogen.Enum) bool

func TurnOffExtGenAll added in v1.2.1

func TurnOffExtGenAll(f *protogen.File) bool

Types

type Builder

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

func NewBuilder

func NewBuilder(gen *protogen.Plugin) *Builder

func (*Builder) Generate

func (b *Builder) Generate() error

Jump to

Keyboard shortcuts

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