longduration

package
v0.1.29 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidLongDuration = fmt.Errorf("invalid long duration amount")

Functions

This section is empty.

Types

type LongDuration

type LongDuration string

func (LongDuration) AddTo

func (ld LongDuration) AddTo(t time.Time) (time.Time, error)

func (LongDuration) Duration

func (ld LongDuration) Duration() (time.Duration, error)

func (LongDuration) ErrInvalid

func (ld LongDuration) ErrInvalid(detail string) error

Jump to

Keyboard shortcuts

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