Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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:

Expand All @@ -44,7 +44,7 @@ package main
import (
"fmt"

"gopkg.in/bluesuncorp/validator.v7"
"gopkg.in/go-playground/validator.v7"
)

// User contains user information
Expand Down Expand Up @@ -143,7 +143,7 @@ import (
"fmt"
"reflect"

"gopkg.in/bluesuncorp/validator.v7"
"gopkg.in/go-playground/validator.v7"
)

// DbBackedUser User struct
Expand Down
2 changes: 1 addition & 1 deletion examples/custom/custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"reflect"

"gopkg.in/bluesuncorp/validator.v7"
"gopkg.in/go-playground/validator.v7"
)

// DbBackedUser User struct
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

sql "database/sql/driver"

"gopkg.in/bluesuncorp/validator.v7"
"gopkg.in/go-playground/validator.v7"
)

// User contains user information
Expand Down
2 changes: 1 addition & 1 deletion examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package validator_test
import (
"fmt"

"gopkg.in/bluesuncorp/validator.v7"
"gopkg.in/go-playground/validator.v7"
)

func ExampleValidate_new() {
Expand Down
2 changes: 1 addition & 1 deletion validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

. "gopkg.in/bluesuncorp/assert.v1"
. "gopkg.in/go-playground/assert.v1"
)

// NOTES:
Expand Down