Mention "-" to prevent encoding field in doc (#683)

This commit is contained in:
Thomas Pelletier
2021-11-24 19:52:23 -05:00
committed by GitHub
parent 79e78b234c
commit d8997efb5a
+3 -1
View File
@@ -115,7 +115,9 @@ func (enc *Encoder) SetIndentTables(indent bool) *Encoder {
// basis:
//
// toml:"foo"
// Changes the name of the key to use for the field to foo.
// Changes the name of the key to use for the field to foo. By default, all
// public fields are encoded. If you want to prevent a public field from
// being exported, you can use the special field name "-".
//
// multiline:"true"
// When the field contains a string, it will be emitted as a quoted