all options
bookworm  ] [  trixie  ] [  sid  ]
[ Source: golang-github-creasty-defaults  ]

Package: golang-github-creasty-defaults-dev (1.7.0-1)

Links for golang-github-creasty-defaults-dev

Screenshot

Debian Resources:

Download Source Package golang-github-creasty-defaults:

Maintainers:

External Resources:

Similar packages:

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

Download golang-github-creasty-defaults-dev

Download for all available architectures
Architecture Package Size Installed Size Files
all 7.7 kB47.0 kB [list of files]