mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-15 19:40:46 +02:00
gnu: Add go-github-com-jackc-chunkreader.
* gnu/packages/golang-xyz.scm (go-github-com-jackc-chunkreader, go-github-com-jackc-chunkreader-v2): New variables. Change-Id: I8a7c9a20fec268b21cd211d2ea0a259cd26ef97c
This commit is contained in:
parent
b3e198a6a4
commit
1d5cf6a8aa
1 changed files with 46 additions and 0 deletions
|
@ -4673,6 +4673,52 @@ ABI}.")
|
||||||
time strings.")
|
time strings.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public go-github-com-jackc-chunkreader
|
||||||
|
(package
|
||||||
|
(name "go-github-com-jackc-chunkreader")
|
||||||
|
(version "1.0.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/jackc/chunkreader")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "0zsxsd6alk51lssq1xq194sf88awj083fjiy7pk3098v2nj9m65l"))))
|
||||||
|
(build-system go-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:import-path "github.com/jackc/chunkreader"))
|
||||||
|
(home-page "https://github.com/jackc/chunkreader")
|
||||||
|
(synopsis "Wrapper for @code{io.Reader}")
|
||||||
|
(description
|
||||||
|
"ChunkReader is a @code{io.Reader} wrapper that minimizes IO reads and
|
||||||
|
memory allocations. It allocates memory in chunks and will read as much as
|
||||||
|
will fit in the current buffer in a single call regardless of how large a read
|
||||||
|
is actually requested. The memory returned via Next is owned by the caller.
|
||||||
|
This avoids the need for an additional copy. It extracted from original
|
||||||
|
implementation in https://github.com/jackc/pgx.")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public go-github-com-jackc-chunkreader-v2
|
||||||
|
(package
|
||||||
|
(inherit go-github-com-jackc-chunkreader)
|
||||||
|
(name "go-github-com-jackc-chunkreader-v2")
|
||||||
|
(version "2.0.1")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/jackc/chunkreader")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "0fj585hp3s4cjfzncr5gmim96p0b956pqdf4nm7yan1ipfch9l1c"))))
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:import-path "github.com/jackc/chunkreader/v2"))))
|
||||||
|
|
||||||
(define-public go-github-com-jackc-pgio
|
(define-public go-github-com-jackc-pgio
|
||||||
(package
|
(package
|
||||||
(name "go-github-com-jackc-pgio")
|
(name "go-github-com-jackc-pgio")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue