timesize

package
v0.0.0-...-6d34d80 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2017 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) Get

func (d Duration) Get() time.Duration

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