duration

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustParse

func MustParse(s string) time.Duration

Parse converts s into a time.Duration, and panics if it fails.

func Parse

func Parse(s string) (time.Duration, bool)

Parse converts s into a time.Duration.

func Valid

func Valid(s string) bool

Valid returns true if s is a valid duration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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