Compare commits

...

10 Commits
master ... v7

Author SHA1 Message Date
Dean Karn 792d6f2ec7 Merge pull request #183 from go-playground/v7-development 9 years ago
Dean Karn dde87cebc7 Merge pull request #181 from joeybloggs/v7-development 9 years ago
joeybloggs 8aebfac55f Merge remote-tracking branch 'upstream/v7' into v7-development 9 years ago
Dean Karn ea1ad74e78 Merge pull request #176 from joeybloggs/v7-development 9 years ago
joeybloggs 254aa57d43 changed repos from bluesuncorp to go-playground 9 years ago
Dean Karn 4d7f9e43b1 Merge pull request #168 from bluesuncorp/v7-development 9 years ago
Dean Karn f6ff3d4da3 Merge pull request #164 from bluesuncorp/v7-development 9 years ago
joeybloggs 3191556e30 Merge branch 'v7-development' into v7 9 years ago
Dean Karn d5462d5b41 Merge pull request #163 from bluesuncorp/v7-development 9 years ago
Dean Karn 72a602000a Update README.md 9 years ago
  1. 18
      README.md
  2. 2
      examples/custom/custom.go
  3. 2
      examples/simple/simple.go
  4. 2
      examples_test.go
  5. 2
      validator_test.go

@ -1,10 +1,10 @@
Package validator
================
[![Join the chat at https://gitter.im/bluesuncorp/validator](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/bluesuncorp/validator?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Join the chat at https://gitter.im/go-playground/validator](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/go-playground/validator?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://semaphoreci.com/api/v1/projects/ec20115f-ef1b-4c7d-9393-cc76aba74eb4/490000/badge.svg)](https://semaphoreci.com/joeybloggs/validator)
[![Coverage Status](https://coveralls.io/repos/bluesuncorp/validator/badge.svg?branch=v7&service=github)](https://coveralls.io/github/bluesuncorp/validator?branch=v7)
[![GoDoc](https://godoc.org/gopkg.in/bluesuncorp/validator.v7?status.svg)](https://godoc.org/gopkg.in/bluesuncorp/validator.v7)
[![Coverage Status](https://coveralls.io/repos/go-playground/validator/badge.svg?branch=v7&service=github)](https://coveralls.io/github/go-playground/validator?branch=v7)
[![GoDoc](https://godoc.org/gopkg.in/go-playground/validator.v7?status.svg)](https://godoc.org/gopkg.in/go-playground/validator.v7)
Package validator implements value validations for structs and individual fields based on tags.
@ -20,20 +20,20 @@ Installation
Use go get.
go get gopkg.in/bluesuncorp/validator.v7
go get gopkg.in/go-playground/validator.v7
or to update
go get -u gopkg.in/bluesuncorp/validator.v7
go get -u gopkg.in/go-playground/validator.v7
Then import the validator package into your own code.
import "gopkg.in/bluesuncorp/validator.v7"
import "gopkg.in/go-playground/validator.v7"
Usage and documentation
------
Please see http://godoc.org/gopkg.in/bluesuncorp/validator.v7 for detailed usage docs.
Please see http://godoc.org/gopkg.in/go-playground/validator.v7 for detailed usage docs.
##### Examples:
@ -44,7 +44,7 @@ package main
import (
"fmt"
"gopkg.in/bluesuncorp/validator.v7"
"gopkg.in/go-playground/validator.v7"
)
// User contains user information
@ -143,7 +143,7 @@ import (
"fmt"
"reflect"
"gopkg.in/bluesuncorp/validator.v7"
"gopkg.in/go-playground/validator.v7"
)
// DbBackedUser User struct

@ -6,7 +6,7 @@ import (
"fmt"
"reflect"
"gopkg.in/bluesuncorp/validator.v7"
"gopkg.in/go-playground/validator.v7"
)
// DbBackedUser User struct

@ -7,7 +7,7 @@ import (
sql "database/sql/driver"
"gopkg.in/bluesuncorp/validator.v7"
"gopkg.in/go-playground/validator.v7"
)
// User contains user information

@ -3,7 +3,7 @@ package validator_test
import (
"fmt"
"gopkg.in/bluesuncorp/validator.v7"
"gopkg.in/go-playground/validator.v7"
)
func ExampleValidate_new() {

@ -9,7 +9,7 @@ import (
"testing"
"time"
. "gopkg.in/bluesuncorp/assert.v1"
. "gopkg.in/go-playground/assert.v1"
)
// NOTES:

Loading…
Cancel
Save