This is the official Elastic client for the Elasticsearch Serverless service. If you're looking to develop your Go application with the Elasticsearch Stack, you should look at the Elasticsearch Client instead.
You can install the Elasticsearch Serverless Go client with the following commands:
go get -u github.com/elastic/elasticsearch-serverless-go@latest
You can instantiate a client by running the following command:
client, err := elasticsearch.NewClient(elasticsearch.Config{
APIKey: "you_api_key",
Address: "https://my-project-url",
})
You can read to the official documentation page for a getting started guide.
See CONTRIBUTING.
TBD