package toml
import "github.com/influxdata/influxdb/toml"
Package toml adds support to marshal and unmarshal types not in the official TOML spec.
Index ¶
- func ApplyEnvOverrides(getenv func(string) string, prefix string, val interface{}) error
- type Duration
- func (d Duration) MarshalText() (text []byte, err error)
- func (d Duration) String() string
- func (d *Duration) UnmarshalText(text []byte) error
- type FileMode
- func (m FileMode) MarshalText() (text []byte, err error)
- func (m *FileMode) UnmarshalText(text []byte) error
- type Group
- type Size
Functions ¶
func ApplyEnvOverrides ¶
Types ¶
type Duration ¶
Duration is a TOML wrapper type for time.Duration.
func (Duration) MarshalText ¶
MarshalText converts a duration to a string for decoding toml
func (Duration) String ¶
String returns the string representation of the duration.
func (*Duration) UnmarshalText ¶
UnmarshalText parses a TOML value into a duration value.
type FileMode ¶
type FileMode uint32
func (FileMode) MarshalText ¶
func (*FileMode) UnmarshalText ¶
type Group ¶
type Group int
func (*Group) UnmarshalTOML ¶
type Size ¶
type Size uint64
Size represents a TOML parseable file size. Users can specify size using "k" or "K" for kibibytes, "m" or "M" for mebibytes, and "g" or "G" for gibibytes. If a size suffix isn't specified then bytes are assumed.
func (*Size) UnmarshalText ¶
UnmarshalText parses a byte size from text.
Source Files ¶
- Version
- v1.12.0 (latest)
- Published
- Apr 8, 2025
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 2 days ago –
Tools for package owners.