Documentation ¶
Index ¶
- Constants
- func TimeProtoSliceFromTimes(times []time.Time) ([]*timestamppb.Timestamp, error)
- func TimeSliceFromProto(pTimes []*timestamppb.Timestamp) ([]time.Time, error)
- func ToStruct(v interface{}) *structpb.Struct
- func ToTime(pt *timestamppb.Timestamp) (time.Time, error)
- func ToTimestamp(t time.Time) *timestamp.Timestamp
Constants ¶
View Source
const DefaultStringValue = ""
DefaultStringValue is the default string value.
Variables ¶
This section is empty.
Functions ¶
func TimeProtoSliceFromTimes ¶
func TimeProtoSliceFromTimes(times []time.Time) ([]*timestamppb.Timestamp, error)
TimeProtoSliceFromTimes converts a slice of strings to a slice of *timestamppb.Timestamp.
func TimeSliceFromProto ¶
func TimeSliceFromProto(pTimes []*timestamppb.Timestamp) ([]time.Time, error)
TimeSliceFromProto converts a slice of *timestamppb.Timestamp to a slice of time.Time.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package protoless provides some helpers for comparing specific proto objects.
|
Package protoless provides some helpers for comparing specific proto objects. |
Click to show internal directories.
Click to hide internal directories.