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
| Name | Name | Last commit date | ||
|---|---|---|---|---|
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