Skip to content

Commit 4eaa6e8

Browse files
author
Dean Karn
authored
update README (#43)
1 parent 1174b88 commit 4eaa6e8

File tree

14 files changed

+50
-17
lines changed

14 files changed

+50
-17
lines changed

.travis.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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: [email protected]
12+
on_success: change
13+
on_failure: always
14+
15+
before_install:
16+
- go install github.com/mattn/goveralls
17+
18+
# Only clone the most recent commit.
19+
git:
20+
depth: 1
21+
22+
script:
23+
- go test -v -race -covermode=atomic -coverprofile=coverage.coverprofile ./...
24+
25+
after_success: |
26+
goveralls -coverprofile=coverage.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package form
22
============
3-
<img align="right" src="https://raw.githubusercontent.com/go-playground/form/master/logo.jpg">![Project status](https://img.shields.io/badge/version-3.1.4-green.svg)
4-
[![Build Status](https://semaphoreci.com/api/v1/joeybloggs/form/branches/master/badge.svg)](https://semaphoreci.com/joeybloggs/form)
3+
<img align="right" src="https://raw.githubusercontent.com/go-playground/form/master/logo.jpg">![Project status](https://img.shields.io/badge/version-4.0.0-green.svg)
4+
[![Build Status](https://travis-ci.org/go-playground/form.svg?branch=master)](https://travis-ci.org/go-playground/form)
55
[![Coverage Status](https://coveralls.io/repos/github/go-playground/form/badge.svg?branch=master)](https://coveralls.io/github/go-playground/form?branch=master)
66
[![Go Report Card](https://goreportcard.com/badge/github.com/go-playground/form)](https://goreportcard.com/report/github.com/go-playground/form)
77
[![GoDoc](https://godoc.org/github.com/go-playground/form?status.svg)](https://godoc.org/github.com/go-playground/form)
@@ -50,11 +50,11 @@ Installation
5050

5151
Use go get.
5252

53-
go get -u github.com/go-playground/form
53+
go get github.com/go-playground/form
5454

5555
Then import the form package into your own code.
5656

57-
import "github.com/go-playground/form"
57+
import "github.com/go-playground/form/v4"
5858

5959
Usage
6060
-----
@@ -91,7 +91,7 @@ import (
9191
"log"
9292
"net/url"
9393

94-
"github.com/go-playground/form"
94+
"github.com/go-playground/form/v4"
9595
)
9696

9797
// Address contains address information
@@ -158,7 +158,7 @@ import (
158158
"fmt"
159159
"log"
160160

161-
"github.com/go-playground/form"
161+
"github.com/go-playground/form/v4"
162162
)
163163

164164
// Address contains address information

_examples/decoder-embedded/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"log"
66
"net/url"
77

8-
"github.com/go-playground/form"
8+
"github.com/go-playground/form/v4"
99
)
1010

1111
// A ...

_examples/decoder/full.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"log"
66
"net/url"
77

8-
"github.com/go-playground/form"
8+
"github.com/go-playground/form/v4"
99
)
1010

1111
// <form method="POST">

_examples/encoder-embedded/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"log"
66

7-
"github.com/go-playground/form"
7+
"github.com/go-playground/form/v4"
88
)
99

1010
// A ...

_examples/encoder-omitempty/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"log"
66

7-
"github.com/go-playground/form"
7+
"github.com/go-playground/form/v4"
88
)
99

1010
// Test ...

_examples/encoder/full.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"log"
66

7-
"github.com/go-playground/form"
7+
"github.com/go-playground/form/v4"
88
)
99

1010
// Address contains address information

benchmarks/benchmarks_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"net/url"
55
"testing"
66

7-
"github.com/go-playground/form"
7+
"github.com/go-playground/form/v4"
88
)
99

1010
// Simple Benchmarks

cache_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"reflect"
55
"testing"
66

7-
. "gopkg.in/go-playground/assert.v1"
7+
. "github.com/go-playground/assert"
88
)
99

1010
// NOTES:

decoder_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"testing"
99
"time"
1010

11-
. "gopkg.in/go-playground/assert.v1"
11+
. "github.com/go-playground/assert"
1212
)
1313

1414
// NOTES:

doc.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ example decoding the above HTML
9191
"log"
9292
"net/url"
9393
94-
"github.com/go-playground/form"
94+
"github.com/go-playground/form/v4"
9595
)
9696
9797
// Address contains address information
@@ -157,7 +157,7 @@ example encoding
157157
"fmt"
158158
"log"
159159
160-
"github.com/go-playground/form"
160+
"github.com/go-playground/form/v4"
161161
)
162162
163163
// Address contains address information

encoder_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"testing"
88
"time"
99

10-
. "gopkg.in/go-playground/assert.v1"
10+
. "github.com/go-playground/assert"
1111
)
1212

1313
// NOTES:

go.mod

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/go-playground/form/v4
2+
3+
go 1.13
4+
5+
require github.com/go-playground/assert v1.2.1

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github.com/go-playground/assert v1.2.1 h1:ad06XqC+TOv0nJWnbULSlh3ehp5uLuQEojZY5Tq8RgI=
2+
github.com/go-playground/assert v1.2.1/go.mod h1:Lgy+k19nOB/wQG/fVSQ7rra5qYugmytMQqvQ2dgjWn8=

0 commit comments

Comments
 (0)