timesize

package
v0.0.0-...-d3e924d Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadTimeSize = errors.New("invalid timesize")

Functions

func MustParse

func MustParse(s string) time.Duration

func Parse

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

Types

type Duration

type Duration time.Duration

func (Duration) Duration

func (d Duration) Duration() time.Duration

func (Duration) Int64

func (d Duration) Int64() int64

func (Duration) MarshalText

func (d Duration) MarshalText() ([]byte, error)

func (*Duration) Set

func (p *Duration) Set(t time.Duration)

func (*Duration) UnmarshalText

func (p *Duration) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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