Skip to content

Commit 601692b

Browse files
committed
examples use v3
1 parent a0fdb2a commit 601692b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+332
-153
lines changed

CHANGES.md

Lines changed: 5 additions & 5 deletions

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,4 @@ all: test
22

33
test:
44
go vet .
5-
go test -cover -v .
6-
7-
ex:
8-
cd examples && ls *.go | xargs go build -o /tmp/ignore
5+
go test -cover -v .

README.md

Lines changed: 7 additions & 7 deletions

examples/README.md

Lines changed: 1 addition & 0 deletions

examples/basicauth/go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/emicklei/go-restful/examples/basicauth
2+
3+
go 1.14
4+
5+
require github.com/emicklei/go-restful/v3 v3.3.3 // indirect

examples/basicauth/go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
github.com/emicklei/go-restful v1.1.3 h1:KOKLkEASmIa2roa2xEV6WkADqyWrok5dt3TOMMHF1fE=
2+
github.com/emicklei/go-restful v2.14.3+incompatible h1:i59XyRHAxKCVBw3vHzQlpP/+pi89wH1v1HL+RKyVgxk=
3+
github.com/emicklei/go-restful/v3 v3.3.3 h1:2WxjFb4b+Eik8vJ1saz3jbhKnt4xaFVn3N9uU3WXfLE=
4+
github.com/emicklei/go-restful/v3 v3.3.3/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc=

examples/restful-basic-authentication.go renamed to examples/basicauth/restful-basic-authentication.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package main
22

33
import (
4-
"github.com/emicklei/go-restful"
54
"io"
65
"log"
76
"net/http"
7+
8+
restful "github.com/emicklei/go-restful/v3"
89
)
910

1011
// This example shows how to create a (Route) Filter that performs Basic Authentication on the Http request.

examples/cors/go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/emicklei/go-restful/examples/cors
2+
3+
go 1.14
4+
5+
require github.com/emicklei/go-restful/v3 v3.3.3 // indirect

examples/cors/go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
github.com/emicklei/go-restful v1.1.3 h1:KOKLkEASmIa2roa2xEV6WkADqyWrok5dt3TOMMHF1fE=
2+
github.com/emicklei/go-restful v2.14.3+incompatible h1:i59XyRHAxKCVBw3vHzQlpP/+pi89wH1v1HL+RKyVgxk=
3+
github.com/emicklei/go-restful/v3 v3.3.3 h1:2WxjFb4b+Eik8vJ1saz3jbhKnt4xaFVn3N9uU3WXfLE=
4+
github.com/emicklei/go-restful/v3 v3.3.3/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc=

examples/restful-CORS-filter.go renamed to examples/cors/restful-CORS-filter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"log"
66
"net/http"
77

8-
"github.com/emicklei/go-restful"
8+
restful "github.com/emicklei/go-restful/v3"
99
)
1010

1111
// Cross-origin resource sharing (CORS) is a mechanism that allows JavaScript on a web page

0 commit comments

Comments
 (0)