Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDate ¶
func ParseDate(date *pbdatetime.Date) time.Time
ParseDate converts a proto to Go time.Time.
func ParseTimestamp ¶
func ParseTimestamp(timestamp *pbtimestamp.Timestamp) time.Time
ParseTimestamp converts a proto to Go time.Time.
func SerializeDate ¶
func SerializeDate(t time.Time) *pbdatetime.Date
SerializeDate converts a Go time.Time to proto considering only the date part.
func SerializeTimestamp ¶
func SerializeTimestamp(t time.Time) *pbtimestamp.Timestamp
SerializeTimestamp converts a Go time.Time to proto.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.