diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-04-06 10:56:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-06 10:56:52 -0400 |
commit | 6a9c21c4565a9c7ebe5c11bf4152a80cfa4398dc (patch) | |
tree | 2461834660453e6b42afb2149986b895c2dbf8af /vendor/github.com/BurntSushi/toml/encode.go | |
parent | 8b6f911e4818d02bca65ff263dcb61bfe082a470 (diff) | |
parent | bd4b9c3d571abede09b62621449a3565af5b917c (diff) | |
download | podman-6a9c21c4565a9c7ebe5c11bf4152a80cfa4398dc.tar.gz podman-6a9c21c4565a9c7ebe5c11bf4152a80cfa4398dc.tar.bz2 podman-6a9c21c4565a9c7ebe5c11bf4152a80cfa4398dc.zip |
Merge pull request #13776 from containers/dependabot/go_modules/github.com/BurntSushi/toml-1.1.0
build(deps): bump github.com/BurntSushi/toml from 1.0.0 to 1.1.0
Diffstat (limited to 'vendor/github.com/BurntSushi/toml/encode.go')
-rw-r--r-- | vendor/github.com/BurntSushi/toml/encode.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vendor/github.com/BurntSushi/toml/encode.go b/vendor/github.com/BurntSushi/toml/encode.go index dee4e6d31..e7d4eeb48 100644 --- a/vendor/github.com/BurntSushi/toml/encode.go +++ b/vendor/github.com/BurntSushi/toml/encode.go @@ -212,7 +212,7 @@ func (enc *Encoder) eElement(rv reflect.Value) { if err != nil { encPanic(err) } - enc.writeQuoted(string(s)) + enc.w.Write(s) return case encoding.TextMarshaler: s, err := v.MarshalText() @@ -398,6 +398,10 @@ func (enc *Encoder) eStruct(key Key, rv reflect.Value, inline bool) { if f.PkgPath != "" && !f.Anonymous { /// Skip unexported fields. continue } + opts := getOptions(f.Tag) + if opts.skip { + continue + } frv := rv.Field(i) |