From 4eaa6e8e3bf25906631cb15d72838c75de524562 Mon Sep 17 00:00:00 2001 From: Dean Karn Date: Fri, 18 Oct 2019 07:12:19 -0700 Subject: [PATCH] update README (#43) --- .travis.yml | 26 ++++++++++++++++++++++++++ README.md | 12 ++++++------ _examples/decoder-embedded/main.go | 2 +- _examples/decoder/full.go | 2 +- _examples/encoder-embedded/main.go | 2 +- _examples/encoder-omitempty/main.go | 2 +- _examples/encoder/full.go | 2 +- benchmarks/benchmarks_test.go | 2 +- cache_test.go | 2 +- decoder_test.go | 2 +- doc.go | 4 ++-- encoder_test.go | 2 +- go.mod | 5 +++++ go.sum | 2 ++ 14 files changed, 50 insertions(+), 17 deletions(-) create mode 100644 .travis.yml create mode 100644 go.mod create mode 100644 go.sum diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d50237a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +language: go +go: + - 1.13.1 + - tip +matrix: + allow_failures: + - go: tip + +notifications: + email: + recipients: dean.karn@gmail.com + 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 \ No newline at end of file diff --git a/README.md b/README.md index db7d299..2fd6a8e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Package form ============ -![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) +![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) @@ -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 ----- @@ -91,7 +91,7 @@ import ( "log" "net/url" - "github.com/go-playground/form" + "github.com/go-playground/form/v4" ) // Address contains address information @@ -158,7 +158,7 @@ import ( "fmt" "log" - "github.com/go-playground/form" + "github.com/go-playground/form/v4" ) // Address contains address information diff --git a/_examples/decoder-embedded/main.go b/_examples/decoder-embedded/main.go index 9de911e..c75fab2 100644 --- a/_examples/decoder-embedded/main.go +++ b/_examples/decoder-embedded/main.go @@ -5,7 +5,7 @@ import ( "log" "net/url" - "github.com/go-playground/form" + "github.com/go-playground/form/v4" ) // A ... diff --git a/_examples/decoder/full.go b/_examples/decoder/full.go index 0e044ef..fc2331f 100644 --- a/_examples/decoder/full.go +++ b/_examples/decoder/full.go @@ -5,7 +5,7 @@ import ( "log" "net/url" - "github.com/go-playground/form" + "github.com/go-playground/form/v4" ) //
diff --git a/_examples/encoder-embedded/main.go b/_examples/encoder-embedded/main.go index a4c2787..a0a6e8a 100644 --- a/_examples/encoder-embedded/main.go +++ b/_examples/encoder-embedded/main.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/go-playground/form" + "github.com/go-playground/form/v4" ) // A ... diff --git a/_examples/encoder-omitempty/main.go b/_examples/encoder-omitempty/main.go index efeafe0..9a52900 100644 --- a/_examples/encoder-omitempty/main.go +++ b/_examples/encoder-omitempty/main.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/go-playground/form" + "github.com/go-playground/form/v4" ) // Test ... diff --git a/_examples/encoder/full.go b/_examples/encoder/full.go index 49a36bd..e3a1fd1 100644 --- a/_examples/encoder/full.go +++ b/_examples/encoder/full.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/go-playground/form" + "github.com/go-playground/form/v4" ) // Address contains address information diff --git a/benchmarks/benchmarks_test.go b/benchmarks/benchmarks_test.go index b860501..4d4940d 100644 --- a/benchmarks/benchmarks_test.go +++ b/benchmarks/benchmarks_test.go @@ -4,7 +4,7 @@ import ( "net/url" "testing" - "github.com/go-playground/form" + "github.com/go-playground/form/v4" ) // Simple Benchmarks diff --git a/cache_test.go b/cache_test.go index 07194fc..46c66f7 100644 --- a/cache_test.go +++ b/cache_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - . "gopkg.in/go-playground/assert.v1" + . "github.com/go-playground/assert" ) // NOTES: diff --git a/decoder_test.go b/decoder_test.go index aab0e65..04277b0 100644 --- a/decoder_test.go +++ b/decoder_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - . "gopkg.in/go-playground/assert.v1" + . "github.com/go-playground/assert" ) // NOTES: diff --git a/doc.go b/doc.go index b2201eb..f553dac 100644 --- a/doc.go +++ b/doc.go @@ -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 @@ -157,7 +157,7 @@ example encoding "fmt" "log" - "github.com/go-playground/form" + "github.com/go-playground/form/v4" ) // Address contains address information diff --git a/encoder_test.go b/encoder_test.go index 7371f02..efdfa44 100644 --- a/encoder_test.go +++ b/encoder_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - . "gopkg.in/go-playground/assert.v1" + . "github.com/go-playground/assert" ) // NOTES: diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..87e1851 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module github.com/go-playground/form/v4 + +go 1.13 + +require github.com/go-playground/assert v1.2.1 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..80dcf13 --- /dev/null +++ b/go.sum @@ -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=