summaryrefslogtreecommitdiff
path: root/vendor/github.com/BurntSushi/toml/deprecated.go
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2021-08-05 12:20:26 +0000
committerGitHub <noreply@github.com>2021-08-05 12:20:26 +0000
commitadee0ca59972a8590f5f278a4fbcc531acec2ebb (patch)
tree56e801d9d0c10ffe05ddb9d9c6394aed896f8227 /vendor/github.com/BurntSushi/toml/deprecated.go
parent117583c293713f2baa920c4035e820ad59fe6622 (diff)
downloadpodman-adee0ca59972a8590f5f278a4fbcc531acec2ebb.tar.gz
podman-adee0ca59972a8590f5f278a4fbcc531acec2ebb.tar.bz2
podman-adee0ca59972a8590f5f278a4fbcc531acec2ebb.zip
Bump github.com/BurntSushi/toml from 0.3.1 to 0.4.1
Bumps [github.com/BurntSushi/toml](https://github.com/BurntSushi/toml) from 0.3.1 to 0.4.1. - [Release notes](https://github.com/BurntSushi/toml/releases) - [Commits](https://github.com/BurntSushi/toml/compare/v0.3.1...v0.4.1) --- updated-dependencies: - dependency-name: github.com/BurntSushi/toml dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'vendor/github.com/BurntSushi/toml/deprecated.go')
-rw-r--r--vendor/github.com/BurntSushi/toml/deprecated.go33
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 000000000..db89eac1d
--- /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)
+}