common

package
v0.0.0-...-266fb8d Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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