Documentation
¶
Overview ¶
Package genutil contains helper functions to deal with generic data (e.g. maps and sets).
Index ¶
- func EnsureUInt8(value int) (uint8, error)
- func EnsureUInt32(value int) (uint32, error)
- func MustEnsureUInt32(value int) uint32
- func MustNewProtoValidator(opts ...protovalidate.ValidatorOption) protovalidate.Validator
- func NewProtoValidator(opts ...protovalidate.ValidatorOption) (protovalidate.Validator, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureUInt8 ¶
EnsureUInt8 ensures that the specified value can be represented as a uint8.
func EnsureUInt32 ¶
EnsureUInt32 ensures that the specified value can be represented as a uint32.
func MustEnsureUInt32 ¶
MustEnsureUInt32 is a helper function that calls EnsureUInt32 and panics on error.
func MustNewProtoValidator ¶ added in v1.50.0
func MustNewProtoValidator(opts ...protovalidate.ValidatorOption) protovalidate.Validator
MustNewProtoValidator wraps NewProtoValidator() to panic if the validator can't be constructed.
func NewProtoValidator ¶ added in v1.51.0
func NewProtoValidator(opts ...protovalidate.ValidatorOption) (protovalidate.Validator, error)
MustNewProtoValidator returns a new protovalidate instance.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.