mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
serverless_search: removing errant nbsp from go snippets (#168630)
## Summary Removing nbsp characters that somehow got into the golang snippets.
This commit is contained in:
parent
adc9d43c84
commit
30cc89d0ea
2 changed files with 7 additions and 7 deletions
|
@ -69,10 +69,10 @@ export const goDefinition: LanguageDefinition = {
|
|||
"fmt"
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
|
||||
"github.com/elastic/elasticsearch-serverless-go"
|
||||
)
|
||||
|
||||
|
||||
func main() {
|
||||
cfg := elasticsearch.Config{
|
||||
Address: "${url}",
|
||||
|
@ -88,7 +88,7 @@ func main() {
|
|||
{ "index": { "_id": "1"}}
|
||||
{"name": "foo", "title": "bar"}\n\`)).
|
||||
Do(context.Background())
|
||||
|
||||
|
||||
fmt.Println(res, err)
|
||||
}`,
|
||||
};
|
||||
|
|
|
@ -23,7 +23,7 @@ fmt.Println(searchResp, err)`,
|
|||
"fmt"
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
|
||||
"github.com/elastic/elasticsearch-serverless-go"
|
||||
)
|
||||
|
||||
|
@ -69,10 +69,10 @@ fmt.Println(ingestResult, err)`,
|
|||
"fmt"
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
|
||||
"github.com/elastic/elasticsearch-serverless-go"
|
||||
)
|
||||
|
||||
|
||||
func main() {
|
||||
cfg := elasticsearch.Config{
|
||||
Address: "${url}",
|
||||
|
@ -88,7 +88,7 @@ func main() {
|
|||
{ "index": { "_id": "1"}}
|
||||
{"name": "foo", "title": "bar"}\n\`)).
|
||||
Do(context.Background())
|
||||
|
||||
|
||||
fmt.Println(res, err)
|
||||
}`,
|
||||
installClient: 'go get -u github.com/elastic/elasticsearch-serverless-go@latest',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue