Skip to content

Commit d96a070

Browse files
author
Dean Karn
committed
convert to go modules
1 parent 4f4dfbc commit d96a070

File tree

4 files changed

+31
-12
lines changed

4 files changed

+31
-12
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: go
2+
go:
3+
- 1.13.1
4+
- tip
5+
matrix:
6+
allow_failures:
7+
- go: tip
8+
9+
notifications:
10+
email:
11+
recipients: dean.karn@gmail.com
12+
on_success: change
13+
on_failure: always
14+
15+
# Only clone the most recent commit.
16+
git:
17+
depth: 1
18+
19+
script:
20+
- go test -v -race ./...
21+

README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
Package assert
22
==============
33

4-
[![Build Status](https://semaphoreci.com/api/v1/projects/d5e4f510-5e1e-48d9-b38b-f447f270a057/488336/badge.svg)](https://semaphoreci.com/joeybloggs/assert)
5-
[![GoDoc](https://godoc.org/gopkg.in/go-playground/assert.v1?status.svg)](https://godoc.org/gopkg.in/go-playground/assert.v1)
4+
[![GoDoc](https://godoc.org/github.com/go-playground/assert?status.svg)](https://godoc.org/gopkg.in/go-playground/assert.v1)
65

76
Package assert is a Basic Assertion library used along side native go testing
87

@@ -11,20 +10,16 @@ Installation
1110

1211
Use go get.
1312

14-
go get gopkg.in/go-playground/assert.v1
13+
go get github.com/go-playground/assert
1514

16-
or to update
15+
Then import the assert package into your own code.
1716

18-
go get -u gopkg.in/go-playground/assert.v1
19-
20-
Then import the validator package into your own code.
21-
22-
import . "gopkg.in/go-playground/assert.v1"
17+
import . "github.com/go-playground/assert/v2"
2318

2419
Usage and documentation
2520
------
2621

27-
Please see http://godoc.org/gopkg.in/go-playground/assert.v1 for detailed usage docs.
22+
Please see http://godoc.org/github.com/go-playground/assert for detailed usage docs.
2823

2924
##### Example:
3025
```go
@@ -33,7 +28,7 @@ package whatever
3328
import (
3429
"errors"
3530
"testing"
36-
. "gopkg.in/go-playground/assert.v1"
31+
. "github.com/go-playground/assert/v2"
3732
)
3833

3934
func AssertCustomErrorHandler(t *testing.T, errs map[string]string, key, expected string) {

doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ validations.
88
import (
99
"errors"
1010
"testing"
11-
. "gopkg.in/go-playground/assert.v1"
11+
. "github.com/go-playground/assert.v1"
1212
)
1313
1414
func AssertCustomErrorHandler(t *testing.T, errs map[string]string, key, expected string) {

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/go-playground/assert/v2
2+
3+
go 1.13

0 commit comments

Comments
 (0)