Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type StructReader ¶
type StructReader struct {
// contains filtered or unexported fields
}
StructReader provides methods to safely extract values from structpb.Struct
func New ¶
func New(s *structpb.Struct) (*StructReader, error)
New creates a new StructReader from a structpb.Struct
func (*StructReader) GetOptionalString ¶ added in v0.9.0
func (r *StructReader) GetOptionalString(key string) (string, bool)
GetOptionalString returns the string value and true if the key exists and is non-empty, otherwise ("", false).
Click to show internal directories.
Click to hide internal directories.