Documentation
¶
Index ¶
- Variables
- func BatchSet(m Map) error
- func BatchUnset(keys []string) error
- func Escape(value string) string
- func Expand(value string) string
- func Get(key string) string
- func IsSet(key string) bool
- func Lookup(key string) (string, bool)
- func Marshal(value Map, options ...EncoderOption) ([]byte, error)
- func Or(key, defaultValue string) string
- func RawExpand(value string, lookup LookupFunc) string
- func RawGet(key string) string
- func RawLookup(key string) (string, bool)
- func RawOr(key, defaultValue string) string
- func Set(key, value string) error
- func ToKey(key string) string
- func Unescape(value string) string
- func Unmarshal(data []byte, v any, options ...DecoderOption) error
- func Unset(key string) error
- type Decoder
- type DecoderOption
- type Encoder
- type EncoderOption
- type ExpandFunc
- type LookupFunc
- type Map
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func BatchUnset ¶ added in v0.5.0
func RawExpand ¶ added in v0.4.0
func RawExpand(value string, lookup LookupFunc) string
Types ¶
type Decoder ¶ added in v0.4.0
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶ added in v0.4.0
func NewDecoder(r io.Reader, options ...DecoderOption) *Decoder
type DecoderOption ¶ added in v0.4.0
type DecoderOption = func(d *Decoder)
func WithDecoderExpand ¶ added in v0.4.0
func WithDecoderExpand(val bool) DecoderOption
func WithDecoderLookup ¶ added in v0.4.0
func WithDecoderLookup(lookup LookupFunc) DecoderOption
type Encoder ¶ added in v0.4.0
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶ added in v0.4.0
func NewEncoder(w io.Writer, options ...EncoderOption) *Encoder
type EncoderOption ¶ added in v0.4.0
type EncoderOption = func(d *Encoder)
func WithEncoderExpand ¶ added in v0.4.0
func WithEncoderExpand(val bool) EncoderOption
func WithEncoderLookup ¶ added in v0.4.0
func WithEncoderLookup(lookup LookupFunc) EncoderOption
type ExpandFunc ¶ added in v0.4.0
type LookupFunc ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.