You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be handy to tag my go struct with "omitempty" so that the toml writer does not write the value if it is empty. The go standard libraries json and xml have something similar.
Example:
type Settings struct {
Port string `toml:"port,omitempty"`
}
The text was updated successfully, but these errors were encountered:
It would be handy to tag my go struct with "omitempty" so that the toml writer does not write the value if it is empty. The go standard libraries
json
andxml
have something similar.Example:
The text was updated successfully, but these errors were encountered: