Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldMask ¶
type FieldMask struct {
Paths []string
}
FieldMask represents a field mask as defined in Google's Well Known Types. It is used to specify which fields of a resource should be included or excluded in a request or response.
func (*FieldMask) EncodeValues ¶
EncodeValues implements the [query.Encoder] interface by encoding the field mask as a string, like "a,b,c". If the FieldMask is nil or empty, it returns nil. If the url.Values is nil, it returns an error.
func (FieldMask) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface by formatting the field mask as a string according to Google Well Known Type
func (*FieldMask) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface by parsing the field mask from a string according to Google Well Known Type