toutes les options
bookworm  ] [  trixie  ] [  sid  ]
[ Paquet source : golang-github-creasty-defaults  ]

Paquet : golang-github-creasty-defaults-dev (1.6.0-3)

Liens pour golang-github-creasty-defaults-dev

Screenshot

Ressources Debian :

Télécharger le paquet source golang-github-creasty-defaults :

Responsables :

Ressources externes :

Paquets similaires :

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

Télécharger golang-github-creasty-defaults-dev

Télécharger pour toutes les architectures proposées
Architecture Taille du paquet Espace occupé une fois installé Fichiers
all 7,1 ko46,0 ko [liste des fichiers]