[ bianca ]
[ 源代码: golang-github-creasty-defaults ]
软件包:golang-github-creasty-defaults-dev(1.7.0-1)
golang-github-creasty-defaults-dev 的相关链接
下载源码包 golang-github-creasty-defaults:
- [golang-github-creasty-defaults_1.7.0-1.debian.tar.xz]
- [golang-github-creasty-defaults_1.7.0-1.dsc]
- [golang-github-creasty-defaults_1.7.0.orig.tar.gz]
维护小组:
外部的资源:
- 主页 [github.com]
相似软件包:
- golang-layeh-gopher-luar-dev
- golang-github-svent-go-flags-dev
- golang-github-alecthomas-repr-dev
- golang-github-go-playground-validator-v10-dev
- golang-github-alecthomas-jsonschema-dev
- golang-gopkg-pg.v5-dev
- golang-github-tdewolff-argp-dev
- python3-ml-collections
- golang-github-vmihailenco-msgpack.v5-dev
- golang-github-invopop-jsonschema-dev
- golang-github-go-ozzo-ozzo-validation.v4-dev
Initialize structs with default values (library)
Initialize structs with default values
* Supports almost all kind of types
* Scalar types
* int/8/16/32/64, uint/8/16/32/64, float32/64
* uintptr, bool, string
* Complex types
* map, slice, struct
* Nested types
* map[K1]map[K2]Struct, []map[K1]Struct[]
* Aliased types
* time.Duration
* e.g., type Enum string
* Pointer types
* e.g., *SampleStruct, *int
* Recursively initializes fields in a struct * Dynamically sets default values by defaults.Setter (/setter.go) interface * Preserves non-initial values from being reset with a default value