Home
Projects
Resources
Alternatives
Blog
Sign In
Creasty Defaults Versions
Save
Initialize structs with default values
Overview
Versions
Reviews
Resources
v1.7.0
1 year ago
Allow defaults library to use UnmarshalText() and UnmarshalJSON()
v1.6.0
2 years ago
Default value to the entry that key already exists in a map
Support for map of struct
https://github.com/creasty/defaults/commit/53f37548e71298658423a78cee81f20d5d37e655
v1.5.2
2 years ago
Set the default value for a pointers (non-struct) when it is nil only
Thanks to @mmpereira2github
Fix for #24
v1.5.1
3 years ago
Add a MustSet function
https://github.com/creasty/defaults/pull/22
(Thanks to @BoynChan)
v1.5.0
3 years ago
Allow to use integer literals #19 (thanks to @licaonfee)
v1.4.0
3 years ago
set default values of fields of a pointer type field
https://github.com/creasty/defaults/pull/18
(Thanks to @sdghchj)
v1.3.0
5 years ago
Slice of structs support #9 #10 (thanks to @SpectrumQT)
v1.2.1
6 years ago
Propagate JSON unmarshal errors
https://github.com/creasty/defaults/pull/8
v1.2.0
6 years ago
Fix pointer initialization #5 #6
v1.1.0
6 years ago
Automatic recursion and opt-out tag #2
Add CanUpdate helper #3
« Previous
Next »
Home
Projects
Resources
Alternatives
Blog
Sign In
Sign In to OSA
I agree with
Terms of Service
and
Privacy Policy
Sign In with Github