Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Slice ¶
type Slice struct { // Note that the fields below _must_ be exported. Otherwise the TOML // encoder would fail during type reflection. Values []string Attributes struct { Append *bool // Nil if not set by the user } }
Slice allows for extending a TOML string array with custom attributes that control how the array is marshaled into a Go string.
Specifically, an Slice can be configured to avoid it being overridden by a subsequent unmarshal sequence. When the `append` attribute is specified, the array will be appended instead (e.g., `array=["9", {append=true}]`).
func (*Slice) MarshalTOML ¶
MarshalTOML is the custom marshal method for Slice.
func (*Slice) UnmarshalTOML ¶
UnmarshalTOML is the custom unmarshal method for Slice.
Click to show internal directories.
Click to hide internal directories.