This is a simple fork of https://github.com/creasty/defaults that supports tags other than default
.
Usage:
moredefaults.Set(&obj) // uses the "default" tag
moredefaults.Set(&obj, "example") // uses the "example" tag
This is a simple fork of https://github.com/creasty/defaults that supports tags other than default
.
Usage:
moredefaults.Set(&obj) // uses the "default" tag
moredefaults.Set(&obj, "example") // uses the "example" tag