update for new organization

update README, links and documentation for new organization
pull/26/head
Dean Karn 10 years ago
parent 10c0bd95ae
commit a660c007dc
  1. 2
      .travis.yml
  2. 12
      README.md
  3. 2
      doc.go
  4. 2
      validator_test.go

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

@ -1,7 +1,7 @@
Package go-validate-yourself 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) [![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/joeybloggs/go-validate-yourself.v4?status.svg)](https://godoc.org/gopkg.in/joeybloggs/go-validate-yourself.v4) [![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. Package validator implements value validations for structs and individual fields based on tags.
@ -10,20 +10,20 @@ Installation
Just use go get. 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 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. 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 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 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 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. 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" { if fieldErr.Field == "Name" {

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

Loading…
Cancel
Save