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:
Rodney Norris 2023-10-12 15:14:04 -05:00 committed by GitHub
parent adc9d43c84
commit 30cc89d0ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -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)
}`,
};

View file

@ -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',