[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/20: gnu: Add go-gopkg-in-go-playground-validator-v9.
From: |
guix-commits |
Subject: |
10/20: gnu: Add go-gopkg-in-go-playground-validator-v9. |
Date: |
Sun, 3 Jan 2021 10:25:01 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit 19be547c47c846778698bcf1375687dda1e41fb5
Author: Joseph LaFreniere <joseph@lafreniere.xyz>
AuthorDate: Sun Jul 26 23:42:48 2020 -0500
gnu: Add go-gopkg-in-go-playground-validator-v9.
* gnu/packages/golang.scm (go-gopkg-in-go-playground-validator-v9): New
variable.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/golang.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 5ee70c5..93e431f 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -632,6 +632,55 @@ professionally translated
@end itemize")
(license license:expat)))
+(define-public go-gopkg-in-go-playground-validator-v9
+ (package
+ (name "go-gopkg-in-go-playground-validator-v9")
+ (version "9.31.0")
+ (home-page "https://gopkg.in/go-playground/validator.v9")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/go-playground/validator")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1f8c77s8kx9rip2jarv27x5s4xkcmanh4ndyhbcwvrhncs5rq061"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "gopkg.in/go-playground/validator.v9"))
+ (native-inputs
+ `(("go-gopkg-in-go-playground-assert-v1"
+ ,go-gopkg-in-go-playground-assert-v1)))
+ (propagated-inputs
+ `(("go-github-com-go-playground-universal-translator"
+ ,go-github-com-go-playground-universal-translator)
+ ("go-github-com-leodido-go-urn" ,go-github-com-leodido-go-urn)))
+ (synopsis "Validator for structs and individual fields based on tags")
+ (description
+ "This package implements value validations for structs and individual
+fields based on tags. It has the following unique features:
+
+@itemize
+@item Cross Field and Cross Struct validations by using validation tags or
+custom validators
+@item Slice, Array and Map diving, which allows any or all levels of a
+multidimensional field to be validated
+@item Ability to dive into both map keys and values for validation
+@item Handles type interface by determining it's underlying type prior to
validation
+@item Handles custom field types such as sql driver
+@uref{https://golang.org/src/database/sql/driver/types.go?s=1210:1293#L29,
+Valuer}
+@item Alias validation tags, which allows for mapping of several validations
+to a single tag for easier defining of validations on structs
+@item Extraction of custom defined Field Name e.g. can specify to extract the
+JSON name while validating and have it available in the resulting FieldError
+@item Customizable i18n aware error messages.
+@item Default validator for the @uref{https://github.com/gin-gonic/gin, gin}
+web framework
+@end itemize")
+ (license license:expat)))
+
(define-public go-github-com-aws-sdk
(package
(name "go-github-com-aws-sdk")
- branch master updated (7617109 -> 2cb5ebf), guix-commits, 2021/01/03
- 02/20: gnu: graphicsmagick: Add dependency on libwebp., guix-commits, 2021/01/03
- 03/20: gnu: sddm: Update to 0.19.0., guix-commits, 2021/01/03
- 06/20: gnu: Add go-github-com-leodido-go-urn., guix-commits, 2021/01/03
- 04/20: gnu: sdcv: Add 'STARDICT_DATA_DIR' search path spec., guix-commits, 2021/01/03
- 05/20: gnu: ccid: Fix cross-compilation., guix-commits, 2021/01/03
- 09/20: gnu: Add go-gopkg-in-go-playground-assert-v1., guix-commits, 2021/01/03
- 01/20: gnu: rav1e: Update to 0.3.5., guix-commits, 2021/01/03
- 08/20: gnu: Add go-github-com-go-playground-universal-translator., guix-commits, 2021/01/03
- 10/20: gnu: Add go-gopkg-in-go-playground-validator-v9.,
guix-commits <=
- 07/20: gnu: Add go-github-com-go-playground-locales., guix-commits, 2021/01/03
- 11/20: gnu: Add go-github-com-goccy-yaml., guix-commits, 2021/01/03
- 12/20: gnu: Add go-github-com-songmu-gitconfig., guix-commits, 2021/01/03
- 13/20: gnu: Add go-github-com-golangplus-fmt., guix-commits, 2021/01/03
- 17/20: gnu: Add go-golang.org-x-net-html., guix-commits, 2021/01/03
- 18/20: gnu: Add go-github-com-urfave-cli-v2., guix-commits, 2021/01/03
- 16/20: gnu: Add go-github-com-motemen-go-colorine., guix-commits, 2021/01/03
- 19/20: gnu: go-github-com-motemen-go-colorine: Propagate inputs., guix-commits, 2021/01/03
- 14/20: gnu: Add go-github-com-golangplus-testing., guix-commits, 2021/01/03
- 15/20: gnu: Add go-github-com-daviddengcn-go-colortext., guix-commits, 2021/01/03