pout

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTrailingDot = errors.New("trailing dot after message name")
)

Functions

func SplitIdentifier

func SplitIdentifier(input string) (string, string, error)

SplitIdentifier splits an input string into the package identifier and the message name. e.g. google.protobuf.Timestamp - package google.protobuf; message Timestamp

returns ErrInvalidIdentifier if the input does not conform to this standard

func ValidateIdentifier

func ValidateIdentifier(input string) error

Types

type ErrInvalidIdentifier

type ErrInvalidIdentifier struct {
	Detail error
}

func (ErrInvalidIdentifier) Error

func (e ErrInvalidIdentifier) Error() string

func (ErrInvalidIdentifier) Unwrap

func (e ErrInvalidIdentifier) Unwrap() error

Jump to

Keyboard shortcuts

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