duration

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: GPL-3.0 Imports: 4 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 *dpb.Duration) error

FromProto is a helper to set a *time.Duration from a dpb.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