全部搜尋項
bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: golang-github-creasty-defaults  ]

套件:golang-github-creasty-defaults-dev(1.6.0-3)

golang-github-creasty-defaults-dev 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 golang-github-creasty-defaults

維護小組:

外部的資源:

相似套件:

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

下載 golang-github-creasty-defaults-dev

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 7。1 kB46。0 kB [檔案列表]