ident

package
v0.0.0-...-1f4ee57 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LeafName

func LeafName(id protogen.GoIdent) string

LeafName returns the leaf name (after the last dot, if any) in id.

func WithChild

func WithChild(id protogen.GoIdent, child string) protogen.GoIdent

WithChild returns id with a dotted child on its name part. Example: Message -> Message.Field

func WithPrefix

func WithPrefix(id protogen.GoIdent, prefix string) protogen.GoIdent

WithPrefix returns id with a prefix on its name part. Example: Message -> PrefixedMessage

func WithSuffix

func WithSuffix(id protogen.GoIdent, suffix string) protogen.GoIdent

WithSuffix returns id with a suffix on its name part. Example: Message becomes MessageSuffix

Types

This section is empty.

Jump to

Keyboard shortcuts

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