mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-25 05:21:33 +00:00
48d5a1cd1a
Signed-off-by: Evan Lezar <elezar@nvidia.com>
22 lines
587 B
Go
22 lines
587 B
Go
package toml
|
|
|
|
import (
|
|
"encoding"
|
|
"io"
|
|
)
|
|
|
|
// Deprecated: use encoding.TextMarshaler
|
|
type TextMarshaler encoding.TextMarshaler
|
|
|
|
// Deprecated: use encoding.TextUnmarshaler
|
|
type TextUnmarshaler encoding.TextUnmarshaler
|
|
|
|
// 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))
|
|
}
|
|
|
|
// Deprecated: use NewDecoder(reader).Decode(&value).
|
|
func DecodeReader(r io.Reader, v interface{}) (MetaData, error) { return NewDecoder(r).Decode(v) }
|