gnu: Add go-github-com-creasty-defaults.

* gnu/packages/golang-xyz.scm (go-github-com-creasty-defaults): New variable.

Change-Id: I4e96c9945a2e36e8f379db60b9e635f1389bd6b8
This commit is contained in:
Sharlatan Hellseher 2025-01-01 21:14:58 +00:00
parent 4b31d4f15b
commit 8aab90a5ed
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -2905,6 +2905,34 @@ (define-public go-github-com-creack-pty
"The pty package provides functions for working with Unix pseudoterminals.")
(license license:expat)))
(define-public go-github-com-creasty-defaults
(package
(name "go-github-com-creasty-defaults")
(version "1.8.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/creasty/defaults")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1avbm47ghqc6hiafv0c61mzrw9rajgszjyqh4yww916fqzaw8li3"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/creasty/defaults"))
(home-page "https://github.com/creasty/defaults")
(synopsis "Initialize structs with default values")
(description
"This package implements functionlity to initialize structs with default
values. It supports almost all kind of types: @code{int/8/16/32/64},
@code{uint/8/16/32/64}, @code{float32/64}, @code{uintptr}, @code{bool},
@code{string}, @code{map}, @code{slice}, @code{struct},
@code{f,map[K1]map[K2]Struct}, @code{}[]map[K1]Struct[]},
@code{time.Duration}, @code{*SampleStruct}, and @code{*int}")
(license license:expat)))
(define-public go-github-com-cskr-pubsub
(package
(name "go-github-com-cskr-pubsub")