protowrap

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromTimePtr

func FromTimePtr(t *time.Time) *timestamppb.Timestamp

FromTimePtr constructs an instance of timestamppb.Timestamp from the provided time.Time. If the nil has passed, then the nil will be returned.

func Ptr

func Ptr[T any](v T) *T

Ptr constructs a pointer to the value of any type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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