We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would it be possible to save a toml file without the default value for unset (strings are blank, int are 0, etc) values?
The text was updated successfully, but these errors were encountered:
As of now I have Title = "title" Album = "album" Artist = "artist" AlbumArtist = "" Composer = "" Genre = "" Year = 0 Track = 2 Disc = 0 AlbumArt = ""
And I want (with the values that aren't there being set to default in the struct on decode)
Title = "title" Album = "album" Artist = "artist" Track = 2
Sorry, something went wrong.
You do it the same way you would as with encoding/json. Use omitempty.
encoding/json
omitempty
Thanks, Tired me didn't do enough googling lol
No branches or pull requests
Would it be possible to save a toml file without the default value for unset (strings are blank, int are 0, etc) values?
The text was updated successfully, but these errors were encountered: