Skip to content

Commit 824065b

Browse files
committed
Update default package version to "master" in documentation and examples
1 parent 32e6c80 commit 824065b

File tree

9 files changed

+8
-11
lines changed

9 files changed

+8
-11
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Install the package with `go get`:
2525

2626
Or, add the package to your `go.mod` file:
2727

28-
require github.com/elastic/go-elasticsearch v0.0.0
28+
require github.com/elastic/go-elasticsearch master
2929

3030
Or, clone the repository:
3131

@@ -39,7 +39,7 @@ mkdir my-elasticsearch-app && cd my-elasticsearch-app
3939
cat > go.mod <<-END
4040
module my-elasticsearch-app
4141
42-
require github.com/elastic/go-elasticsearch v0.0.0
42+
require github.com/elastic/go-elasticsearch master
4343
END
4444

4545
cat > main.go <<-END

_examples/cloudfunction/go.mod

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/elastic/go-elasticsearch/_examples/clusterstatus
22

33
replace github.com/elastic/go-elasticsearch => ../..
44

5-
require github.com/elastic/go-elasticsearch v0.0.0
5+
require github.com/elastic/go-elasticsearch master

_examples/fasthttp/fasthttp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (t *Transport) copyRequest(src *http.Request, dst *fasthttp.Request) *fasth
4141

4242
dst.Header.SetRequestURI(src.URL.String())
4343
dst.Header.SetMethod(src.Method)
44-
dst.Header.SetUserAgent("go-elasticsearch@v0.0.0")
44+
dst.Header.SetUserAgent("go-elasticsearch@master")
4545

4646
if src.Body != nil {
4747
var b bytes.Buffer

_examples/fasthttp/go.mod

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module github.com/elastic/go-elasticsearch/_examples/fasthttp
33
replace github.com/elastic/go-elasticsearch => ../..
44

55
require (
6-
github.com/elastic/go-elasticsearch v0.0.0
6+
github.com/elastic/go-elasticsearch master
77
github.com/valyala/fasthttp v1.1.0
88
)

_examples/xkcdsearch/go.mod

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/elastic/go-elasticsearch/_examples/xkcdsearch
33
replace github.com/elastic/go-elasticsearch => ../..
44

55
require (
6-
github.com/elastic/go-elasticsearch v0.0.0
6+
github.com/elastic/go-elasticsearch master
77
github.com/inconshreveable/mousetrap v1.0.0 // indirect
88
github.com/rs/zerolog v1.11.0
99
github.com/spf13/cobra v0.0.3

_examples/xkcdsearch/go.sum

100755100644
-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
21
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
32
github.com/rs/zerolog v1.11.0 h1:DRuq/S+4k52uJzBQciUcofXx45GrMC6yrEbb/CoK6+M=
43
github.com/rs/zerolog v1.11.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU=

esapi/test/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
go.sum
12
*_test.go

esapi/test/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/elastic/go-elasticsearch/esapi/test
33
replace github.com/elastic/go-elasticsearch => ../../
44

55
require (
6-
github.com/elastic/go-elasticsearch v0.0.0
6+
github.com/elastic/go-elasticsearch master
77

88
gopkg.in/yaml.v2 v2.2.2
99
)

esapi/test/go.sum

-3
This file was deleted.

0 commit comments

Comments
 (0)