pilosa: github.com/pilosa/pilosa/toml Index | Files

package toml

import "github.com/pilosa/pilosa/toml"


Package Files


type Duration Uses

type Duration time.Duration

Duration is a TOML wrapper type for time.Duration.

func (Duration) MarshalTOML Uses

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

MarshalTOML write duration into valid TOML.

func (Duration) MarshalText Uses

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

MarshalText writes duration value in text format.

func (Duration) String Uses

func (d Duration) String() string

String returns the string representation of the duration.

func (*Duration) UnmarshalText Uses

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

UnmarshalText parses a TOML value into a duration value.

Package toml imports 1 packages (graph) and is imported by 4 packages. Updated 2019-04-26. Refresh now. Tools for package owners.