timing

package
v0.0.0-...-8018142 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

README

timing

GoDoc

Documentation

Overview

Package timing provides functions for parsing time configurations into time.Duration instances

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTimeout

func GetTimeout(timeoutFmt string) (time.Duration, error)

GetTimeout converts a properly formatted string to a Duration, returning an error if the Duration can't be parsed

func ParseDuration

func ParseDuration(duration interface{}) (time.Duration, error)

ParseDuration parses the given duration with multiple type support int (defaults to seconds) string with units string without units (default to seconds)

Types

This section is empty.

Jump to

Keyboard shortcuts

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