File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ Once you have the `http_ca.crt` file somewhere accessible pass the content of th
7474
7575[source,go]
7676------------------------------------
77- cert, _ := ioutil .ReadFile("/path/to/http_ca.crt")
77+ cert, _ := os .ReadFile("/path/to/http_ca.crt")
7878
7979cfg := elasticsearch.Config{
8080 Addresses: []string{
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ The standard way of indexing a document is to provide a `struct` to the `Request
88document := struct {
99 Id int `json:"id"`
1010 Name string `json:"name"`
11- Price int `json:"price"`
11+ Price int `json:"price"`
1212}{
1313 Id: 1,
1414 Name: "Foo",
15- Price: 10,
15+ Price: 10,
1616}
1717
1818res, err := es.Index("index_name").
You can’t perform that action at this time.
0 commit comments