mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-13 18:40:57 +02:00
gnu: go-github-com-go-playground-validator-v10: Move to golang-check.
* gnu/packages/golang.scm (go-github-com-go-playground-validator-v10): Move from here ... * gnu/packages/golang-check.scm: ... to here. Change-Id: Idd8b93fbd1415c0cd329fad722f40cd22a0e5d4b
This commit is contained in:
parent
8f70c28459
commit
07536320d6
2 changed files with 53 additions and 51 deletions
|
@ -455,6 +455,59 @@ workloads. This kind of profiling is also known as wall-clock profiling.")
|
||||||
tests.")
|
tests.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public go-github-com-go-playground-validator-v10
|
||||||
|
(package
|
||||||
|
(name "go-github-com-go-playground-validator-v10")
|
||||||
|
(version "10.23.0")
|
||||||
|
(home-page "https://github.com/go-playground/validator")
|
||||||
|
(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 "1frr06zq7fimmfjv9nac2cx9gclydbay0smn2h78znsbrylfhcmz"))))
|
||||||
|
(build-system go-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:import-path "github.com/go-playground/validator/v10"))
|
||||||
|
(native-inputs
|
||||||
|
(list go-github-com-go-playground-assert-v2))
|
||||||
|
(propagated-inputs
|
||||||
|
(list go-github-com-gabriel-vasile-mimetype
|
||||||
|
go-github-com-go-playground-locales
|
||||||
|
go-github-com-go-playground-universal-translator
|
||||||
|
go-github-com-leodido-go-urn
|
||||||
|
go-golang-org-x-crypto
|
||||||
|
go-golang-org-x-text))
|
||||||
|
(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-go-quicktest-qt
|
(define-public go-github-com-go-quicktest-qt
|
||||||
(package
|
(package
|
||||||
(name "go-github-com-go-quicktest-qt")
|
(name "go-github-com-go-quicktest-qt")
|
||||||
|
|
|
@ -2165,57 +2165,6 @@ professionally translated
|
||||||
@end itemize")
|
@end itemize")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public go-github-com-go-playground-validator-v10
|
|
||||||
(package
|
|
||||||
(name "go-github-com-go-playground-validator-v10")
|
|
||||||
(version "10.23.0")
|
|
||||||
(home-page "https://github.com/go-playground/validator")
|
|
||||||
(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 "1frr06zq7fimmfjv9nac2cx9gclydbay0smn2h78znsbrylfhcmz"))))
|
|
||||||
(build-system go-build-system)
|
|
||||||
(arguments
|
|
||||||
'(#:import-path "github.com/go-playground/validator/v10"))
|
|
||||||
(native-inputs
|
|
||||||
(list go-github-com-go-playground-assert-v2))
|
|
||||||
(propagated-inputs
|
|
||||||
(list go-github-com-gabriel-vasile-mimetype
|
|
||||||
go-github-com-go-playground-locales
|
|
||||||
go-github-com-go-playground-universal-translator
|
|
||||||
go-github-com-leodido-go-urn
|
|
||||||
go-golang-org-x-crypto
|
|
||||||
go-golang-org-x-text))
|
|
||||||
(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-nathan-osman-go-sunrise
|
(define-public go-github-com-nathan-osman-go-sunrise
|
||||||
(let ((commit "c8f9f1eb869135f07378e7e3c5ec7a005f806c73")
|
(let ((commit "c8f9f1eb869135f07378e7e3c5ec7a005f806c73")
|
||||||
(revision "0"))
|
(revision "0"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue