diff options
author | lawl <github@dumbinter.net> | 2022-01-06 09:51:08 +0200 |
---|---|---|
committer | lawl <github@dumbinter.net> | 2022-01-06 16:04:00 +0530 |
commit | 38787e4195f2a34d7ec4421caf17cb99bc31fa2b (patch) | |
tree | 1baab139993dcf5b851d16b3628bdb8339007ace /vendor/github.com/BurntSushi/toml/deprecated.go | |
parent | 4aca9e658874f8c72fff3a03039de40e294d1822 (diff) | |
download | noisetorch-38787e4195f2a34d7ec4421caf17cb99bc31fa2b.tar.gz noisetorch-38787e4195f2a34d7ec4421caf17cb99bc31fa2b.zip |
Chore: Upgrade toml dependency
Diffstat (limited to 'vendor/github.com/BurntSushi/toml/deprecated.go')
-rw-r--r-- | vendor/github.com/BurntSushi/toml/deprecated.go | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/vendor/github.com/BurntSushi/toml/deprecated.go b/vendor/github.com/BurntSushi/toml/deprecated.go new file mode 100644 index 0000000..db89eac --- /dev/null +++ b/vendor/github.com/BurntSushi/toml/deprecated.go @@ -0,0 +1,33 @@ +package toml + +import ( + "encoding" + "io" +) + +// DEPRECATED! +// +// Use the identical encoding.TextMarshaler instead. It is defined here to +// support Go 1.1 and older. +type TextMarshaler encoding.TextMarshaler + +// DEPRECATED! +// +// Use the identical encoding.TextUnmarshaler instead. It is defined here to +// support Go 1.1 and older. +type TextUnmarshaler encoding.TextUnmarshaler + +// DEPRECATED! +// +// Use MetaData.PrimitiveDecode instead. +func PrimitiveDecode(primValue Primitive, v interface{}) error { + md := MetaData{decoded: make(map[string]bool)} + return md.unify(primValue.undecoded, rvalue(v)) +} + +// DEPRECATED! +// +// Use NewDecoder(reader).Decode(&v) instead. +func DecodeReader(r io.Reader, v interface{}) (MetaData, error) { + return NewDecoder(r).Decode(v) +} |