Package google contains utility methods to help interface between Google standard protobufs and native Go types.
DurationFromProto returns the time.Duration associated with a Duration protobuf.
LoadDuration replaces the value in the supplied Duration with the specified value.
If the supplied Duration is nil and the value is non-zero, a new Duration will be generated. The populated Duration will be returned.
LoadTimestamp replaces the value in the supplied Timestamp with the specified time.
If the supplied Timestamp is nil and the time is non-zero, a new Timestamp will be generated. The populated Timestamp will be returned.
NewDuration creates a new Duration protobuf from a time.Duration.
NewTimestamp creates a new Timestamp protobuf from a time.Time type.
TimeFromProto returns the time.Time associated with a Timestamp protobuf.
|descutil||Package descutil contains utility functions for protobuf descriptor messages.|