common

package
Version: v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationPtr

func DurationPtr(d time.Duration) *time.Duration

DurationPtr returns pointer to duration.

func DurationValue

func DurationValue(d *time.Duration) time.Duration

DurationValue dereference duration in a safe way.

func MinDurationPtr

func MinDurationPtr(d1 *time.Duration, d2 *time.Duration) *time.Duration

MinDurationPtr returns pointer to minimum duration.

func TimeValue

func TimeValue(t *time.Time) time.Time

TimeValue dereference time in a safe way.

Types

This section is empty.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL