API: Encoder and Decoder options are chainable (#670)

Fixes #583
This commit is contained in:
Thomas Pelletier
2021-11-13 19:04:53 -05:00
committed by GitHub
parent 4dff8eaa4d
commit 64fe47161f
3 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -551,7 +551,7 @@ K = 42`,
type flagsSetters []struct {
name string
f func(enc *toml.Encoder, flag bool)
f func(enc *toml.Encoder, flag bool) *toml.Encoder
}
var allFlags = flagsSetters{