Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBoolValue ¶
GetBoolValue returns a boolean value and no error if the given key is found in the provided proto struct input. An error is returned if the key is not found and required is true, or the value type is not a boolean.
func GetStringValue ¶
GetStringValue returns a string value and no error if the given key is found in the provided proto struct input. An error is returned if the key is not found or the value type is not a string. An error is returned if the parameter argument "required" is set to true and the value from the proto struct input is empty.
func GetTimeValue ¶
GetTimeValue returns a time.Time object and no error if the given key is found in the provided proto struct input. An error is returned if the value in the struct isn't a string or the value is not parsable by time.Parse. The expected time layout is RFC3339Nano.
func StructFields ¶
StructFields returns a map[string]struct{} of the proto struct input.
Types ¶
This section is empty.