diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2021-08-05 15:45:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-05 15:45:55 +0000 |
commit | 1359f07bda73036f80d6938bcf92584c7ee10d1f (patch) | |
tree | 0d0b9b3cd16b360e0866b7ec5949bc9bbadf7321 /vendor/github.com/BurntSushi/toml/deprecated.go | |
parent | 1f0a24437d71f8fe2b2233a428202afcfe513666 (diff) | |
parent | adee0ca59972a8590f5f278a4fbcc531acec2ebb (diff) | |
download | podman-1359f07bda73036f80d6938bcf92584c7ee10d1f.tar.gz podman-1359f07bda73036f80d6938bcf92584c7ee10d1f.tar.bz2 podman-1359f07bda73036f80d6938bcf92584c7ee10d1f.zip |
Merge pull request #11144 from containers/dependabot/go_modules/github.com/BurntSushi/toml-0.4.1
Bump github.com/BurntSushi/toml from 0.3.1 to 0.4.1
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 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) +} |