mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 04:09:40 -06:00
Bumps [github.com/gookit/config/v2](https://github.com/gookit/config) from 2.1.8 to 2.2.2. - [Release notes](https://github.com/gookit/config/releases) - [Commits](https://github.com/gookit/config/compare/v2.1.8...v2.2.2) --- updated-dependencies: - dependency-name: github.com/gookit/config/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
30 lines
837 B
Go
30 lines
837 B
Go
package toml
|
|
|
|
import (
|
|
"encoding"
|
|
"io"
|
|
)
|
|
|
|
// TextMarshaler is an alias for encoding.TextMarshaler.
|
|
//
|
|
// Deprecated: use encoding.TextMarshaler
|
|
type TextMarshaler encoding.TextMarshaler
|
|
|
|
// TextUnmarshaler is an alias for encoding.TextUnmarshaler.
|
|
//
|
|
// Deprecated: use encoding.TextUnmarshaler
|
|
type TextUnmarshaler encoding.TextUnmarshaler
|
|
|
|
// PrimitiveDecode is an alias for MetaData.PrimitiveDecode().
|
|
//
|
|
// Deprecated: use MetaData.PrimitiveDecode.
|
|
func PrimitiveDecode(primValue Primitive, v interface{}) error {
|
|
md := MetaData{decoded: make(map[string]struct{})}
|
|
return md.unify(primValue.undecoded, rvalue(v))
|
|
}
|
|
|
|
// DecodeReader is an alias for NewDecoder(r).Decode(v).
|
|
//
|
|
// Deprecated: use NewDecoder(reader).Decode(&value).
|
|
func DecodeReader(r io.Reader, v interface{}) (MetaData, error) { return NewDecoder(r).Decode(v) }
|