Merge pull request #26 from joeybloggs/v4

update for new organization
v4 v4.0.4
Dean Karn 9 years ago
commit 47a6634ff8
  1. 2
      .travis.yml
  2. 12
      README.md
  3. 2
      doc.go
  4. 2
      validator_test.go

@ -2,7 +2,7 @@ language: go
notificaitons:
email:
recipients: dean.karn@gmail.com
recipients: bluesuncorp01@gmail.com
on_success: change
on_failure: always

@ -1,7 +1,7 @@
Package go-validate-yourself
================
[![Build Status](https://travis-ci.org/joeybloggs/go-validate-yourself.svg?branch=v4)](https://travis-ci.org/joeybloggs/go-validate-yourself)
[![GoDoc](https://godoc.org/gopkg.in/joeybloggs/go-validate-yourself.v4?status.svg)](https://godoc.org/gopkg.in/joeybloggs/go-validate-yourself.v4)
[![Build Status](https://travis-ci.org/bluesuncorp/go-validate-yourself.svg?branch=v4)](https://travis-ci.org/bluesuncorp/go-validate-yourself)
[![GoDoc](https://godoc.org/gopkg.in/bluesuncorp/go-validate-yourself.v4?status.svg)](https://godoc.org/gopkg.in/bluesuncorp/go-validate-yourself.v4)
Package validator implements value validations for structs and individual fields based on tags.
@ -10,20 +10,20 @@ Installation
Just use go get.
go get gopkg.in/joeybloggs/go-validate-yourself.v4
go get gopkg.in/bluesuncorp/go-validate-yourself.v4
or to update
go get -u gopkg.in/joeybloggs/go-validate-yourself.v4
go get -u gopkg.in/bluesuncorp/go-validate-yourself.v4
And then just import the package into your own code.
import "gopkg.in/joeybloggs/go-validate-yourself.v4"
import "gopkg.in/bluesuncorp/go-validate-yourself.v4"
Usage
=====
Please see http://godoc.org/gopkg.in/joeybloggs/go-validate-yourself.v4 for detailed usage docs.
Please see http://godoc.org/gopkg.in/bluesuncorp/go-validate-yourself.v4 for detailed usage docs.
Contributing
============

@ -55,7 +55,7 @@ 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 me building an internationalized application
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.
if fieldErr.Field == "Name" {

@ -6,7 +6,7 @@ import (
"testing"
"time"
"github.com/joeybloggs/go-validate-yourself"
"gopkg.in/bluesuncorp/go-validate-yourself.v4"
. "gopkg.in/check.v1"
)

Loading…
Cancel
Save