Merge pull request #177 from joeybloggs/v6-development

changed organization from bluesuncorp to go-playground
pull/182/head
Dean Karn 9 years ago
commit 3399dd8aa8
  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 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/487383/badge.svg)](https://semaphoreci.com/joeybloggs/validator) [![Build Status](https://semaphoreci.com/api/v1/projects/ec20115f-ef1b-4c7d-9393-cc76aba74eb4/487383/badge.svg)](https://semaphoreci.com/joeybloggs/validator)
[![Coverage Status](https://coveralls.io/repos/bluesuncorp/validator/badge.svg?branch=v6)](https://coveralls.io/r/bluesuncorp/validator?branch=v6) [![Coverage Status](https://coveralls.io/repos/go-playground/validator/badge.svg?branch=v6)](https://coveralls.io/r/go-playground/validator?branch=v6)
[![GoDoc](https://godoc.org/gopkg.in/bluesuncorp/validator.v6?status.svg)](https://godoc.org/gopkg.in/bluesuncorp/validator.v6) [![GoDoc](https://godoc.org/gopkg.in/go-playground/validator.v6?status.svg)](https://godoc.org/gopkg.in/go-playground/validator.v6)
Package validator implements value validations for structs and individual fields based on tags. Package validator implements value validations for structs and individual fields based on tags.
@ -20,20 +20,20 @@ Installation
Use go get. Use go get.
go get gopkg.in/bluesuncorp/validator.v6 go get gopkg.in/go-playground/validator.v6
or to update or to update
go get -u gopkg.in/bluesuncorp/validator.v6 go get -u gopkg.in/go-playground/validator.v6
Then import the validator package into your own code. Then import the validator package into your own code.
import "gopkg.in/bluesuncorp/validator.v6" import "gopkg.in/go-playground/validator.v6"
Usage and documentation Usage and documentation
------ ------
Please see http://godoc.org/gopkg.in/bluesuncorp/validator.v6 for detailed usage docs. Please see http://godoc.org/gopkg.in/go-playground/validator.v6 for detailed usage docs.
##### Examples: ##### Examples:
@ -44,7 +44,7 @@ package main
import ( import (
"fmt" "fmt"
"gopkg.in/bluesuncorp/validator.v6" "gopkg.in/go-playground/validator.v6"
) )
// User contains user information // User contains user information
@ -143,7 +143,7 @@ import (
"fmt" "fmt"
"reflect" "reflect"
"gopkg.in/bluesuncorp/validator.v6" "gopkg.in/go-playground/validator.v6"
) )
// DbBackedUser User struct // DbBackedUser User struct

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

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

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

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

Loading…
Cancel
Save