Skip to content

Commit

Permalink
update README (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Karn authored Oct 18, 2019
1 parent 1174b88 commit 4eaa6e8
Show file tree
Hide file tree
Showing 14 changed files with 50 additions and 17 deletions.
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: go
go:
- 1.13.1
- tip
matrix:
allow_failures:
- go: tip

notifications:
email:
recipients: [email protected]
on_success: change
on_failure: always

before_install:
- go install github.com/mattn/goveralls

# Only clone the most recent commit.
git:
depth: 1

script:
- go test -v -race -covermode=atomic -coverprofile=coverage.coverprofile ./...

after_success: |
goveralls -coverprofile=coverage.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package form
============
<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)
[![Build Status](https://semaphoreci.com/api/v1/joeybloggs/form/branches/master/badge.svg)](https://semaphoreci.com/joeybloggs/form)
<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)
[![Build Status](https://travis-ci.org/go-playground/form.svg?branch=master)](https://travis-ci.org/go-playground/form)
[![Coverage Status](https://coveralls.io/repos/github/go-playground/form/badge.svg?branch=master)](https://coveralls.io/github/go-playground/form?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/go-playground/form)](https://goreportcard.com/report/github.com/go-playground/form)
[![GoDoc](https://godoc.org/github.com/go-playground/form?status.svg)](https://godoc.org/github.com/go-playground/form)
Expand Down Expand Up @@ -50,11 +50,11 @@ Installation

Use go get.

go get -u github.com/go-playground/form
go get github.com/go-playground/form

Then import the form package into your own code.

import "github.com/go-playground/form"
import "github.com/go-playground/form/v4"

Usage
-----
Expand Down Expand Up @@ -91,7 +91,7 @@ import (
"log"
"net/url"

"github.com/go-playground/form"
"github.com/go-playground/form/v4"
)

// Address contains address information
Expand Down Expand Up @@ -158,7 +158,7 @@ import (
"fmt"
"log"

"github.com/go-playground/form"
"github.com/go-playground/form/v4"
)

// Address contains address information
Expand Down
2 changes: 1 addition & 1 deletion _examples/decoder-embedded/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"net/url"

"github.com/go-playground/form"
"github.com/go-playground/form/v4"
)

// A ...
Expand Down
2 changes: 1 addition & 1 deletion _examples/decoder/full.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"net/url"

"github.com/go-playground/form"
"github.com/go-playground/form/v4"
)

// <form method="POST">
Expand Down
2 changes: 1 addition & 1 deletion _examples/encoder-embedded/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"log"

"github.com/go-playground/form"
"github.com/go-playground/form/v4"
)

// A ...
Expand Down
2 changes: 1 addition & 1 deletion _examples/encoder-omitempty/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"log"

"github.com/go-playground/form"
"github.com/go-playground/form/v4"
)

// Test ...
Expand Down
2 changes: 1 addition & 1 deletion _examples/encoder/full.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"log"

"github.com/go-playground/form"
"github.com/go-playground/form/v4"
)

// Address contains address information
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/benchmarks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/url"
"testing"

"github.com/go-playground/form"
"github.com/go-playground/form/v4"
)

// Simple Benchmarks
Expand Down
2 changes: 1 addition & 1 deletion cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

. "gopkg.in/go-playground/assert.v1"
. "github.com/go-playground/assert"
)

// NOTES:
Expand Down
2 changes: 1 addition & 1 deletion decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

. "gopkg.in/go-playground/assert.v1"
. "github.com/go-playground/assert"
)

// NOTES:
Expand Down
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ example decoding the above HTML
"log"
"net/url"
"github.com/go-playground/form"
"github.com/go-playground/form/v4"
)
// Address contains address information
Expand Down Expand Up @@ -157,7 +157,7 @@ example encoding
"fmt"
"log"
"github.com/go-playground/form"
"github.com/go-playground/form/v4"
)
// Address contains address information
Expand Down
2 changes: 1 addition & 1 deletion encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

. "gopkg.in/go-playground/assert.v1"
. "github.com/go-playground/assert"
)

// NOTES:
Expand Down
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/go-playground/form/v4

go 1.13

require github.com/go-playground/assert v1.2.1
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/go-playground/assert v1.2.1 h1:ad06XqC+TOv0nJWnbULSlh3ehp5uLuQEojZY5Tq8RgI=
github.com/go-playground/assert v1.2.1/go.mod h1:Lgy+k19nOB/wQG/fVSQ7rra5qYugmytMQqvQ2dgjWn8=

0 comments on commit 4eaa6e8

Please sign in to comment.