utils

package
v0.0.0-...-9e9b692 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldGoType

func FieldGoType(g *protogen.GeneratedFile, field *protogen.Field) (goType string)

FieldGoType returns the Go type used for a field. If it returns pointer=true, the struct field is a pointer to the type.

func FieldIsOneOf

func FieldIsOneOf(field *protogen.Field) bool

FieldIsOneOf check the field is oneof

func FieldIsPointer

func FieldIsPointer(field *protogen.Field) bool

FieldIsPointer check the field is pointer

func LoadFieldList

func LoadFieldList(message *protogen.Message) []*protogen.Field

LoadFieldList return valid fields list in message.

func LoadValidMessages

func LoadValidMessages(messages []*protogen.Message) []*protogen.Message

Types

This section is empty.

Jump to

Keyboard shortcuts

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