pgkfield

package
v0.0.0-...-b6d9d2a Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldContainMessage

func FieldContainMessage(field *protogen.Field) bool

FieldContainMessage represents whether the field contains a data of type `message`.

func FieldGoName

func FieldGoName(field *protogen.Field, inOneOf bool) string

FieldGoName returns the field name in Golang.

func FieldGoType

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

FieldGoType returns the Go type used for a field.

func FieldIsOneOf

func FieldIsOneOf(field *protogen.Field) bool

FieldIsOneOf represents whether the field type is `oneof`

func FieldIsOptional

func FieldIsOptional(field *protogen.Field) bool

FieldIsOptional represents whether the field has qualifier modifier `optional`.

func FieldProtoName

func FieldProtoName(field *protogen.Field, inOneOf bool) string

FieldProtoName returns the field name that you declare in proto file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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