From ee5dd04847a0a4896ae792364e27cc0f05526f0c Mon Sep 17 00:00:00 2001 From: Patrick Norton Date: Mon, 24 Nov 2025 14:16:24 -0500 Subject: [PATCH] gnu: Add go-github-com-panjf2000-ants-v2. * gnu/packages/golang-xyz.scm (go-github-com-panjf2000-ants-v2): New variable. Change-Id: I7d6ea9c0e58d72e8baf9ad2a135fcee4ee2fd6f7 Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 3a1685153037bb45957cb3ddad018a41328b960a..3956dbd38dbc7c0699d1ce1ca70f7a42d8ffd856 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -18279,6 +18279,35 @@ throughput and hit ratio performance. It's a fork of @code{dgraph-io/ristretto} project.") (license license:asl2.0))) +(define-public go-github-com-panjf2000-ants-v2 + (package + (name "go-github-com-panjf2000-ants-v2") + (version "2.11.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/panjf2000/ants") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0gz74jw7a905wld0bgcpxii3bq5864mv5hsnbkzj1n00n3lwmqmb")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/panjf2000/ants/v2")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-golang-org-x-sync)) + (home-page "https://github.com/panjf2000/ants") + (synopsis "Pooling solution for Golang") + (description + "This package implements a goroutine pool with fixed capacity, managing and +recycling a massive number of goroutines, allowing developers to limit the +number of goroutines in your concurrent programs.") + (license license:expat))) + (define-public go-github-com-patrickmn-go-cache (package (name "go-github-com-patrickmn-go-cache")