Ecosyste.ms: Repos
An open API service providing repository metadata for many open source software ecosystems.
Package Usage: go: gopkg.in/bluesuncorp/validator.v5
Package validator implements value validations for structs and individual fields based on tags. It can also handle Cross Field and Cross Struct validation for nested structs.
Validate
A simple example usage:
The error can be used like so
Both StructErrors and FieldError implement the Error interface but it's
intended use is for development + debugging, not a production error message.
Why not a better error message? because this library intends for you to handle your own error messages
Why should I handle my own errors? Many reasons, for us building an internationalized application
I needed to know the field and what validation failed so that I could provide an error in the users specific language.
The hierarchical error structure is hard to work with sometimes.. Agreed Flatten function to the rescue!
Flatten will return a map of FieldError's but the field name will be namespaced.
Custom functions can be added
Cross Field Validation can be implemented, for example Start & End Date range validation
Multiple validators on a field will process in the order defined
Bad Validator definitions are not handled by the library
NOTE: Baked In Cross field validation only compares fields on the same struct,
if cross field + cross struct validation is needed your own custom validator
should be implemented.
NOTE2: comma is the default separator of validation tags, if you wish to have a comma
included within the parameter i.e. excludesall=, you will need to use the UTF-8 hex
representation 0x2C, which is replaced in the code as a comma, so the above will
become excludesall=0x2C
Here is a list of the current built in validators:
Validator notes:
This package panics when bad input is provided, this is by design, bad code like that should not make it to production.
11 versions
Latest release: almost 9 years ago
9 dependent packages
View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/gopkg.in/bluesuncorp/validator.v5
View more repository details: https://repos.ecosyste.ms/hosts/GitHub/repositories/go-playground%2Fvalidator
Dependent Repos 130
companieshouse/insolvency-api
- v5.10.3 go.sum
Size: 1.04 MB - Last synced: about 1 month ago - Pushed: 7 months ago
uledger/eris-db Fork of hyperledger-archives/burrow
The erisdb library is a server that wraps a tendermint node.- c06d47f593d786142436a43334f724d819093c04 Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 5.16 MB - Last synced: 10 months ago - Pushed: over 8 years ago
kjhnns/iCalculator
- 1d61bf31487322f9bffa4d9f1eda4a53175b58dd Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 4.17 MB - Last synced: 5 months ago - Pushed: almost 9 years ago
t104fk/container-monitoring
monitor container- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 app/Godeps/Godeps.json
Size: 141 KB - Last synced: 10 months ago - Pushed: almost 9 years ago
subsilent/identicon
A simple web service for generating Identicons- 1d61bf31487322f9bffa4d9f1eda4a53175b58dd Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 355 KB - Last synced: 11 months ago - Pushed: almost 9 years ago
agileproducts/golang-webapp-gin-example
A basic example golang webap using the Gin framework- d627af88ac021317a280d320986282a6dc97549a Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 316 KB - Last synced: about 1 year ago - Pushed: over 8 years ago
Taik/go-port-checker
Port checker implemented in Go.- v5.8.1 go.mod
- v5.8.1 go.sum
Size: 686 KB - Last synced: about 1 month ago - Pushed: over 5 years ago
baldercm/go-poc
Go API microservice PoC- df95f9de27b8022e57f8ce09448cee6b1170bb3d Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 766 KB - Last synced: about 2 months ago - Pushed: almost 9 years ago
e-chapin/gpgo-api
Guitar Practice App in Go- v5.9.1 src/go.mod
- v5.9.1 src/go.sum
Size: 38.4 MB - Last synced: 11 months ago - Pushed: about 1 year ago
veritech/hnt-hmrc
HNT tax calculator- v5.9.1 go.mod
- v5.9.1 go.sum
Size: 277 KB - Last synced: about 1 year ago - Pushed: about 2 years ago
rtrevinnoc/MidnightCypher
A web app for steganography, to protect the voice of the opressed- v5.9.1 go.mod
- v5.9.1 go.sum
Size: 3.25 MB - Last synced: over 1 year ago
danjac/kanban
Very simplistic kanban implementation- 77108103e5fd435ff31967e1a011fda801391c85 Godeps/Godeps.json
Size: 17.9 MB - Last synced: about 1 month ago - Pushed: over 8 years ago
nihanthd/optimus
This is a GO REST server for controlling devices connected to Raspberry PI- v5.10.3 go.mod
- v5.10.3 go.sum
Size: 13.5 MB - Last synced: about 2 months ago - Pushed: over 1 year ago
vrajesh-r/shopify-plugin-backend-test
- v5.0.0-20150527014022-479d3f0fd9ba service/go.sum
Size: 24.9 MB - Last synced: 3 days ago - Pushed: almost 3 years ago
bertoort/sugoku
Sudoku puzzle solver and generator- 98121ac23ff3d764f525d18d8de944d150e3c0fe Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 192 KB - Last synced: about 2 months ago - Pushed: about 2 months ago
dracero/test-go-mongo
- v5.9.1 go.mod
Size: 27.3 KB - Last synced: about 1 month ago - Pushed: over 3 years ago
companieshouse/insolvency-poc
- v5.10.3 go.sum
Size: 15.6 KB - Last synced: about 1 month ago - Pushed: over 1 year ago
companieshouse/chs-streaming-api-frontend 📦
- v5.10.3 go.sum
Size: 110 KB - Last synced: about 1 month ago - Pushed: about 1 year ago
companieshouse/chs-streaming-api-cache 📦
- v5.10.3 go.sum
Size: 84 KB - Last synced: about 1 month ago - Pushed: 9 months ago
companieshouse/chs-streaming-api-backend 📦
- v5.10.3 go.sum
Size: 89.8 KB - Last synced: about 1 month ago - Pushed: 9 months ago
sl4ureano/Severino
É um simples gerenciador de tarefas com interface HTTP e MySQL como banco de dados.- v5.10.3 go.mod
- v5.10.3 go.sum
Size: 179 KB - Last synced: 11 months ago - Pushed: over 3 years ago
jayluxferro/GhanaPostGPS-REST-API
REST API for GhanaPostGPS- v5.10.3 go.mod
Size: 1.96 MB - Last synced: about 1 month ago - Pushed: about 1 month ago
konjoot/treacy
- 1d61bf31487322f9bffa4d9f1eda4a53175b58dd Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 547 KB - Last synced: 11 months ago - Pushed: almost 9 years ago
ChristopherRabotin/goswift
An example of using Gin for high scalability authenticated requests.- 77108103e5fd435ff31967e1a011fda801391c85 Godeps/Godeps.json
Size: 39.1 KB - Last synced: 10 months ago - Pushed: over 8 years ago
parkdy/golang-chat
- 98121ac23ff3d764f525d18d8de944d150e3c0fe Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 9.41 MB - Last synced: 10 months ago - Pushed: over 8 years ago
ashwamegh/100Days100Films
A website to share movies, I watched in 100 consecutive days.- v5.9.1 server/go.mod
- v5.9.1 server/go.sum
Size: 8.65 MB - Last synced: 29 days ago - Pushed: about 1 year ago
jordanpotter/gosu
- d5acf1dac43705f8bfbb71d878e290e2bed3950b Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 3.35 MB - Last synced: about 1 month ago - Pushed: over 8 years ago
rachoac/tictactoe-go
a tictactoe service written in go- d8e0c4d93696f467eedc43f7f954b48eb6fe6ba8 lobby/Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 lobby/Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 203 KB - Last synced: about 1 year ago - Pushed: about 8 years ago
moul/radioman
:musical_note: Web radio solution using Liquidsoap and Icecast- v5.10.4-0.20150924114428-d5acf1dac437 radioman/go.mod
- v5.10.4-0.20150924114428-d5acf1dac437 radioman/go.sum
Size: 3.38 MB - Last synced: 23 days ago - Pushed: 23 days ago
pennz/antlr_lifestyle
Personal Management Data Reports- v5.9.1 go.mod
- v5.9.1 go.sum
Size: 869 KB - Last synced: 10 months ago - Pushed: over 1 year ago
databr/api
- 77108103e5fd435ff31967e1a011fda801391c85 Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 21.7 MB - Last synced: 2 months ago - Pushed: about 8 years ago
jayluxferro/enersmart 📦
ECG Power Recharge Platform- v5.9.1 go.mod
- v5.9.1 go.sum
Size: 15.7 MB - Last synced: 4 months ago - Pushed: over 1 year ago
bubblebox/server
A modern content sharing platform.- d5acf1dac43705f8bfbb71d878e290e2bed3950b Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 2.63 MB - Last synced: 11 months ago - Pushed: over 8 years ago
companieshouse/emergency-auth-code-api
Temporary - Server side application for the emergency auth code solution.- v5.10.3 go.sum
Size: 199 KB - Last synced: 22 days ago - Pushed: 22 days ago
kjhnns/thesis-pretest
Pretest for my master thesis- 1d61bf31487322f9bffa4d9f1eda4a53175b58dd Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 19.3 MB - Last synced: 10 months ago - Pushed: over 7 years ago
geofffranks/mvmock
a mock- df95f9de27b8022e57f8ce09448cee6b1170bb3d Godeps/Godeps.json
Size: 1.68 MB - Last synced: 9 months ago - Pushed: over 7 years ago
sprungknoedl/whiskee 📦
ORPHANED: whiskee is a social sharing & recommendation site for whiskey enthusiasts- d5acf1dac43705f8bfbb71d878e290e2bed3950b Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 34.7 MB - Last synced: 11 months ago - Pushed: over 8 years ago
Palybasy/herokuGoTest
- v5.9.1 go.mod
- v5.9.1 go.sum
Size: 334 KB - Last synced: over 1 year ago - Pushed: over 2 years ago
IBM-Cloud/go-hello-world
A Hello World app using Golang- d5acf1dac43705f8bfbb71d878e290e2bed3950b Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 2.81 MB - Last synced: about 2 months ago - Pushed: about 1 year ago
iKayrat/get-url-online-pay
- v5.9.1 go.mod
- v5.9.1 go.sum
Size: 228 KB - Last synced: about 1 year ago - Pushed: over 2 years ago
chenjinxuan/chess
Texas Holdem by go- d2748d5ae5e5af5ec3a85e3a59bf0db9d741c82d srv/srv-room/vendor/vendor.json
Size: 60.1 MB - Last synced: about 1 year ago - Pushed: almost 6 years ago
mrkaspa/guartz
Execute commands periodically on the server with a api interface- 77108103e5fd435ff31967e1a011fda801391c85 Godeps/Godeps.json
Size: 956 KB - Last synced: 11 months ago - Pushed: about 8 years ago
companieshouse/lfp-pay-api
API for paying late filing penalties- v5.10.3 go.sum
Size: 119 KB - Last synced: about 1 month ago - Pushed: over 1 year ago
ralberts/golang-starter-template
Go starter template project + GORM + Echo + Go-Playground Validation- v5.9.1 go.sum
Size: 204 KB - Last synced: 10 months ago - Pushed: almost 2 years ago
Donwangugi/gugibackend
- d627af88ac021317a280d320986282a6dc97549a Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 679 KB - Last synced: over 1 year ago
ChristopherRabotin/gin-contrib-headerauth
Middleware for the gin web framework. Allows to protect routes with a signature based authentication.- 77108103e5fd435ff31967e1a011fda801391c85 Godeps/Godeps.json
Size: 250 KB - Last synced: 10 months ago - Pushed: almost 9 years ago
tscolari/thruster
Simple wrapper around gin.Engine, that reads configuration from a config file.- 1d61bf31487322f9bffa4d9f1eda4a53175b58dd Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 559 KB - Last synced: 11 months ago - Pushed: almost 9 years ago
SusannBurnell/simple_go_rest_api
- d5acf1dac43705f8bfbb71d878e290e2bed3950b Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 3.14 MB - Last synced: about 1 year ago - Pushed: over 8 years ago
BillBillBillBill/smallthings
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 eleme-hackthon/hackathon(Go)/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 7.54 MB - Last synced: 3 months ago - Pushed: over 7 years ago
vishaltelangre/cowboy
Power up your slack with cowboy!- d627af88ac021317a280d320986282a6dc97549a Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 6.72 MB - Last synced: about 2 months ago - Pushed: over 6 years ago
blues/route-heroku-go 📦
An example of creating a simple Go application on Heroku that is capable of ingesting routed notes.- v5.9.1 go.mod
- v5.9.1 go.sum
Size: 189 KB - Last synced: about 1 year ago - Pushed: about 3 years ago
durango/gin-passport-facebook
- 98121ac23ff3d764f525d18d8de944d150e3c0fe Godeps/Godeps.json
Size: 2.93 KB - Last synced: about 2 months ago - Pushed: almost 8 years ago
companieshouse/payment-reconciler
A service to reconcile payments.- v5.10.3 go.sum
Size: 160 KB - Last synced: about 1 month ago - Pushed: 7 months ago
enkhalifapro/go-fast
Go-Fast- d5acf1dac43705f8bfbb71d878e290e2bed3950b Godeps/Godeps.json
Size: 6.68 MB - Last synced: 2 months ago - Pushed: almost 8 years ago
ArthuriaDX/Rudeus01
- v5.9.1 go.mod
- v5.9.1 go.sum
Size: 47.3 MB - Last synced: about 1 year ago - Pushed: about 3 years ago
tkusd/server 📦
- 06aac46c918960c01a241888042fc5e4e922b899 Godeps/Godeps.json
Size: 410 KB - Last synced: about 1 year ago - Pushed: over 8 years ago
Daio-io/pic-sizer
Nothing to see here..just a test app- 27a1d3f1583676b710bb06faf4c8927dd941a893 Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 301 KB - Last synced: about 1 month ago - Pushed: almost 9 years ago
zhanghjster/ChatChat
- d5acf1dac43705f8bfbb71d878e290e2bed3950b server/Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 server/Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 22.3 MB - Last synced: 10 months ago - Pushed: over 8 years ago
sfdug/gi_n
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/Godeps.json
Size: 876 KB - Last synced: over 1 year ago
go_coders/bike-project
This is the code base for the Server in Golang.- d627af88ac021317a280d320986282a6dc97549a Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 1.01 MB - Last synced: over 1 year ago
golang-vietnam/forum
Simple golang programing language forum in VietNam- c06d47f593d786142436a43334f724d819093c04 Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 2.73 MB - Last synced: about 1 year ago - Pushed: almost 9 years ago
Bjorn248/ec2-stopwatch
HTTP API for managing ec2 instances. Scheduling periods when an instance should be on and off, and also setting instance expiration dates.- d2748d5ae5e5af5ec3a85e3a59bf0db9d741c82d Godeps/Godeps.json
- 07cbdd2e6dfd947b002e83c13b775c7580fab2d5 Godeps/_workspace/src/github.com/gin-gonic/gin/Godeps/Godeps.json
Size: 619 KB - Last synced: 11 months ago - Pushed: over 6 years ago