pelletier / go-toml

Go library for the TOML file format
https://github.com/pelletier/go-toml
Other
1.67k stars 208 forks source link

Fix reflect.Pointer backward compatibility #956

Open xxxVitoxxx opened 1 week ago

xxxVitoxxx commented 1 week ago

Explanation of what this pull request does.

/go/pkg/mod/github.com/pelletier/go-toml/v2@v2.2.2/marshaler.go:735:40: undefined: reflect.Pointer

If we want to reflect.Pointer backward compatibility. here should use reflect.Ptr.

related issue: https://github.com/pelletier/go-toml/issues/812


Benchmarks not needed