From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MKekGLkYq19cawAA0tVLHw (envelope-from ) for ; Tue, 10 Nov 2020 22:48:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6LHoE7kYq1/WaQAAbx9fmQ (envelope-from ) for ; Tue, 10 Nov 2020 22:48:25 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BF70B94006E for ; Tue, 10 Nov 2020 22:48:24 +0000 (UTC) Received: from localhost ([::1]:35306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kccR5-0000So-OJ for larch@yhetil.org; Tue, 10 Nov 2020 17:48:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kccQk-0000Om-QD for guix-patches@gnu.org; Tue, 10 Nov 2020 17:48:09 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55986) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kccQk-0008Mv-Cq for guix-patches@gnu.org; Tue, 10 Nov 2020 17:48:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kccQk-0002Md-CE for guix-patches@gnu.org; Tue, 10 Nov 2020 17:48:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44562] [PATCH 05/15] gnu: Add go-gopkg-in-go-playground-validator-v9. Resent-From: Joseph LaFreniere Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Nov 2020 22:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44562 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44562@debbugs.gnu.org Received: via spool by 44562-submit@debbugs.gnu.org id=B44562.16050484819073 (code B ref 44562); Tue, 10 Nov 2020 22:48:02 +0000 Received: (at 44562) by debbugs.gnu.org; 10 Nov 2020 22:48:01 +0000 Received: from localhost ([127.0.0.1]:39298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kccQi-0002MH-LT for submit@debbugs.gnu.org; Tue, 10 Nov 2020 17:48:00 -0500 Received: from mx.kolabnow.com ([95.128.36.40]:39554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kccQh-0002M4-Fa for 44562@debbugs.gnu.org; Tue, 10 Nov 2020 17:48:00 -0500 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTP id A3D2540B2A for <44562@debbugs.gnu.org>; Tue, 10 Nov 2020 23:47:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:mime-version:message-id:date:date :in-reply-to:subject:subject:from:from:references:received :received:received; s=dkim20160331; t=1605048473; x=1606862874; bh=NZJsEyIxE67GKhUamgoUiDZeGHyQbaKazvhQp6eBEkw=; b=K12+nQGZYLBn GGKSrrsyTqwYdSBqvEPmlSUNoiR5fnpwtjxxOv0mM1hRI2+/xPXn14qAASLBlLDo P1L0440I/1d+FvM6XKNm0Kt1m5qGGbT5nltSu9eP2Aq55IcEO4D3/KI6hsTZQ9C3 8SakDERZo0C3C7W3fgSw1RVtFy4WEfWHic1nI31o+MyzKdka0IRaCfgEYRn6Gdxc 4UJnyRGbQHWfP/uHTdlToTX8YumZuTKad/Etmo9FxbYEu01X8hEAXqXXwcDxLfpV 9Yx0u2oPJauM4XEmyzdo6ZMA+AgY8ewYyL9n91TudWxeTgnf47A2vdTgbYoEngOt WQNHkvSkhl6ugLXs5+L/ZjJZKNThC/+0mFBsZTNx6JH85amFJ81OIt15l+XX6abi PV4bPE8f7pwROYN2260tra9LQqdNmTSzRp6LAfdDjDE22/WzRXKFyejtKVDiNTIe wu83cTLAC29KUahH5pFZrOKB9VyDrXYo5N6kbydrpa8rY4yggzYPr6AMGfxGr9Wi 4GM9wd3PpEuQWkMmOopqfesfhu05mzIdLI9DfW0ed8H3cKkfWvNEJWmjnf4wggF/ XQWvdoJOH93JK8q+JHEje9fATVde+bbhXtLqpezMonzZeCnMc3i2LeJlu5T1KOkC +ef2iwc65Y8rS+P4ThOB1Xm8QgSh2hY= X-Virus-Scanned: amavisd-new at mykolab.com X-Spam-Score: -1.899 Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dmpNSMJRXbHf for <44562@debbugs.gnu.org>; Tue, 10 Nov 2020 23:47:53 +0100 (CET) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by ext-mx-out003.mykolab.com (Postfix) with ESMTPS id D77F74096E for <44562@debbugs.gnu.org>; Tue, 10 Nov 2020 23:47:52 +0100 (CET) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx003.mykolab.com (Postfix) with ESMTPS id 8E54C288B for <44562@debbugs.gnu.org>; Tue, 10 Nov 2020 23:47:52 +0100 (CET) References: <87361galdn.fsf@lafreniere.xyz> From: Joseph LaFreniere In-reply-to: <87361galdn.fsf@lafreniere.xyz> Date: Tue, 10 Nov 2020 16:47:49 -0600 Message-ID: <87r1p096cq.fsf@lafreniere.xyz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 2.5 (++) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: 1.5 (+) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=kolabnow.com header.s=dkim20160331 header.b=K12+nQGZ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: lVyCk7jkI5xt --=-=-= Content-Type: text/plain; format=flowed -- Joseph LaFreniere --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0005-gnu-Add-go-gopkg-in-go-playground-validator-v9.patch >From e4b414d320e2f77bbe07719484822cea855a57b6 Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere Date: Sun, 26 Jul 2020 23:42:48 -0500 Subject: [PATCH 05/15] gnu: Add go-gopkg-in-go-playground-validator-v9. * gnu/packages/golang.scm (go-gopkg-in-go-playground-validator-v9): New variable. --- gnu/packages/golang.scm | 48 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 6742404f3f..32605fbc65 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -625,6 +625,54 @@ 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")) + (inputs + `(("go-gopkg-in-go-playground-assert-v1" + ,go-gopkg-in-go-playground-assert-v1) + ("go-github-com-go-playground-locales" + ,go-github-com-go-playground-locales) + ("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-gopkg.in-tomb.v2 (let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c") (revision "0")) -- 2.29.2 --=-=-=--