protoutil

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBool added in v0.1.4

func DefaultBool(b types.Bool, d bool) bool

DefaultBool returns the bool value of b if not null, or the default value d if b is null.

func EnumToQuotedString

func EnumToQuotedString(enum map[string]int32) string

func FirstNonEmpty added in v0.1.2

func FirstNonEmpty(sl ...string) string

FirstNonEmpty returns the first string that is non-empty. If all strings are empty, the empty string is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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