[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1020537: ITP: golang-github-creasty-defaults -- Initialize structs with default values



Package: wnpp
Severity: wishlist
Owner: Daniel Milde <daniel@milde.cz>

* Package name : golang-github-creasty-defaults
Version : 1.6.0-1
Upstream Author : Yuki Iwanaga
* URL : https://github.com/creasty/defaults
* License : Expat
Programming Lang: Go
Description : Initialize structs with default values

defaults
.
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

New dependency for fq.
It will be team-maintained within the Go Packaging Team.


Attachment: OpenPGP_0xEF0BA1C4F3990103.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: