timeproto

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package timeproto provides functions for translating timestamps between Golang and Protobuf.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

func From(t *tspb.Timestamp) time.Time

From translates a protobuf Timestamp message to a Golang Time object.

func To

func To(t time.Time) *tspb.Timestamp

To translates a golang Time object to a protobuf Timestamp message.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL