Releases: sidai/defaults
Releases · sidai/defaults
v1.0.1
v1.0.0
Default values filling for almost all data types
- Primitive Types:
bool, int/8/16/32/64, uint/8/16/32/64, float32/64, []byte, string
- Custom Types:
time.Duration, time.Time
- Aliased types. e.g
type UserName string
- Self-defined type. e.g.
type User struct {Name string, Age int}
- Complex Types:
map, slice, struct, interface
- Nested Types: e.g.
map[int][]*User, []map[int]*User, map[int]map[int]*User
- Pointer Types: e.g.
*int, *User, **int, **User