Skip to content

Commit 92ddaeb

Browse files
Dean KarnDean Karn
authored andcommitted
Merge pull request #185 from go-playground/v8-development
V8 development
2 parents 8324129 + 8818fdc commit 92ddaeb

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Package validator
22
================
33

4-
[![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)
5-
[![Build Status](https://semaphoreci.com/api/v1/projects/ec20115f-ef1b-4c7d-9393-cc76aba74eb4/530054/badge.svg)](https://semaphoreci.com/joeybloggs/validator)
6-
[![Coverage Status](https://coveralls.io/repos/bluesuncorp/validator/badge.svg?branch=v8&service=github)](https://coveralls.io/github/bluesuncorp/validator?branch=v8)
7-
[![GoDoc](https://godoc.org/gopkg.in/bluesuncorp/validator.v8?status.svg)](https://godoc.org/gopkg.in/bluesuncorp/validator.v8)
4+
[![Join the chat at https://gitter.im/bluesuncorp/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)
5+
[![Build Status](https://semaphoreci.com/api/v1/projects/ec20115f-ef1b-4c7d-9393-cc76aba74eb4/523019/badge.svg)](https://semaphoreci.com/joeybloggs/validator)
6+
[![Coverage Status](https://coveralls.io/repos/go-playground/validator/badge.svg?branch=v8-development&service=github)](https://coveralls.io/github/go-playground/validator?branch=v8-development)
7+
[![GoDoc](https://godoc.org/gopkg.in/go-playground/validator.v8?status.svg)](https://godoc.org/gopkg.in/go-playground/validator.v8)
88

99
Package validator implements value validations for structs and individual fields based on tags.
1010

@@ -21,15 +21,15 @@ Installation
2121

2222
Use go get.
2323

24-
go get gopkg.in/bluesuncorp/validator.v8
24+
go get gopkg.in/go-playground/validator.v8
2525

2626
or to update
2727

28-
go get -u gopkg.in/bluesuncorp/validator.v8
28+
go get -u gopkg.in/go-playground/validator.v8
2929

3030
Then import the validator package into your own code.
3131

32-
import "gopkg.in/bluesuncorp/validator.v8"
32+
import "gopkg.in/go-playground/validator.v8"
3333

3434
Error Return Value
3535
-------
@@ -39,7 +39,7 @@ Validation functions return type error
3939
They return type error to avoid the issue discussed in the following, where err is always != nil:
4040

4141
* http://stackoverflow.com/a/29138676/3158232
42-
* https://github.com/bluesuncorp/validator/issues/134
42+
* https://github.com/go-playground/validator/issues/134
4343

4444
validator only returns nil or ValidationErrors as type error; so in you code all you need to do
4545
is check if the error returned is not nil, and if it's not type cast it to type ValidationErrors
@@ -53,7 +53,7 @@ validationErrors := err.(validator.ValidationErrors)
5353
Usage and documentation
5454
------
5555

56-
Please see http://godoc.org/gopkg.in/bluesuncorp/validator.v8 for detailed usage docs.
56+
Please see http://godoc.org/gopkg.in/go-playground/validator.v8 for detailed usage docs.
5757

5858
##### Examples:
5959

@@ -64,7 +64,7 @@ package main
6464
import (
6565
"fmt"
6666

67-
"gopkg.in/bluesuncorp/validator.v8"
67+
"gopkg.in/go-playground/validator.v8"
6868
)
6969

7070
// User contains user information
@@ -160,7 +160,7 @@ import (
160160
"fmt"
161161
"reflect"
162162

163-
"gopkg.in/bluesuncorp/validator.v8"
163+
"gopkg.in/go-playground/validator.v8"
164164
)
165165

166166
// DbBackedUser User struct

doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ method here: https://golang.org/pkg/os/#Open.
2323
2424
They return type error to avoid the issue discussed in the following, where err is always != nil:
2525
http://stackoverflow.com/a/29138676/3158232
26-
https://github.com/bluesuncorp/validator/issues/134
26+
https://github.com/go-playground/validator/issues/134
2727
2828
validator only returns nil or ValidationErrors as type error; so in you code all you need to do
2929
is check if the error returned is not nil, and if it's not type cast it to type ValidationErrors

examples/custom/custom.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"fmt"
77
"reflect"
88

9-
"gopkg.in/bluesuncorp/validator.v8"
9+
"gopkg.in/go-playground/validator.v8"
1010
)
1111

1212
// DbBackedUser User struct

examples/simple/simple.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
sql "database/sql/driver"
99

10-
"gopkg.in/bluesuncorp/validator.v8"
10+
"gopkg.in/go-playground/validator.v8"
1111
)
1212

1313
// User contains user information

examples_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package validator_test
33
import (
44
"fmt"
55

6-
"gopkg.in/bluesuncorp/validator.v8"
6+
"gopkg.in/go-playground/validator.v8"
77
)
88

99
func ExampleValidate_new() {

validator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"testing"
1010
"time"
1111

12-
. "gopkg.in/bluesuncorp/assert.v1"
12+
. "gopkg.in/go-playground/assert.v1"
1313
)
1414

1515
// NOTES:

0 commit comments

Comments
 (0)