exp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: MIT Imports: 1 Imported by: 0

README

EXP

This is a simple library with a few custom types and methods shared by the other libraries in this application.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dur

type Dur struct {
	// contains filtered or unexported fields
}

Dur is used to UnmarshalTOML into a time.Duration value.

func (*Dur) Add

func (v *Dur) Add(val time.Duration)

Add time to a duration.

func (*Dur) Set

func (v *Dur) Set(val time.Duration)

Set a duration to a Dur type.

func (*Dur) String

func (v *Dur) String() string

String representation of a duration.

func (*Dur) UnmarshalJSON

func (v *Dur) UnmarshalJSON(data []byte) error

UnmarshalJSON parses a duration type from a config file.

func (*Dur) UnmarshalTOML

func (v *Dur) UnmarshalTOML(data []byte) error

UnmarshalTOML parses a duration type from a config file.

func (*Dur) UnmarshalText

func (v *Dur) UnmarshalText(data []byte) error

UnmarshalText parses a duration type from a config file.

func (*Dur) Value

func (v *Dur) Value() time.Duration

Value of a Dur type.

Jump to

Keyboard shortcuts

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