Subject: [PATCH v2 10/13] gnu: Add go-github-com-modern-go-concurrent

From: Fries <[email-masked]>
Date: Sat, 05 Aug 2023 11:02:03 +0000

* gnu/packages/golang.scm (go-github-com-modern-go-concurrent): Add variable.
---
 gnu/packages/golang.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 803ff2a3b5..f38cd334a3 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -6764,6 +6764,30 @@ (define-public go-github-com-mitchellh-reflectwalk
 unknown structures such as those decoded from JSON.")
     (license license:expat)))
 
+(define-public go-github-com-modern-go-concurrent
+  (package
+    (name "go-github-com-modern-go-concurrent")
+    (version "0.0.0-20180306012644-bacd9c7ef1dd")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/modern-go/concurrent")
+                    (commit (go-version->git-ref version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0s0fxccsyb8icjmiym5k7prcqx36hvgdwl588y0491gi18k5i4zs"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:import-path "github.com/modern-go/concurrent"))
+    (home-page "https://github.com/modern-go/concurrent")
+    (synopsis "Concurrency utilities for Go")
+    (description
+     "A Go library providing various concurrency utilities including a backport
+of @code{sync.Map} to Go versions below 1.9 and a cancellable Goroutine with
+explicit ownership.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-mitchellh-copystructure
   (package
     (name "go-github-com-mitchellh-copystructure")
-- 
2.41.0