guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 1501cbccee416281a91b69776901ee657f58b756
Author: Patrick Norton <[email protected]>
AuthorDate: Mon Nov 24 18:57:40 2025 -0500
gnu: Add go-gopkg-in-validator-v2.
* gnu/packages/golang-web.scm (go-gopkg-in-validator-v2): New variable.
Change-Id: I0a004989be41103977f0b88b28f736d4a2a76ccc
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 3e66e36c6f..817b8daf34 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -25948,6 +25948,34 @@ decimal arithmetic.")
termination.")
(license license:bsd-3)))
+(define-public go-gopkg-in-validator-v2
+ (package
+ (name "go-gopkg-in-validator-v2")
+ (version "2.0.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/go-validator/validator")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "17jvj3phqv757kncn16rgjvk3lq495mjdrsc1v41r0y1dwkvpsib"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "gopkg.in/validator.v2"))
+ (propagated-inputs
+ (list go-gopkg-in-check-v1))
+ (home-page "https://pkg.go.dev/gopkg.in/validator.v2")
+ (synopsis "Implement value validations based on struct tags")
+ (description
+ "This package implements value validations based on struct tags.
+In code it is often necessary to validate that a given value is valid before
+using it for something. This package allows one to define valid values as
+struct tags when defining a new struct type.")
+ (license license:asl2.0)))
+
(define-public go-gopkg-in-vmihailenco-msgpack-v2
(package
(name "go-gopkg-in-vmihailenco-msgpack-v2")