common

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationPtr added in v0.28.0

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

DurationPtr returns pointer to duration.

func DurationValue added in v0.28.0

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

DurationValue dereference duration in a safe way.

func MinDurationPtr added in v0.28.0

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

MinDurationPtr returns pointer to minimum duration.

func TimeValue added in v0.28.0

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

TimeValue dereference time in a safe way.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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