duration

package
v0.0.0-...-8545ed7 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package duration provides functionality around time.Duration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromProto

func FromProto(dst *time.Duration, src *durationpb.Duration) error

FromProto is a helper to set a *time.Duration from a durationpb.Duration. Returns an error if the duration is negative, but NOT if the duration is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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