Example in README.md is broken
Closed this issue · 2 comments
wandergeek commented
Readiness Checklist
- I am running the latest version
- I checked the documentation and found no answer
- I checked to make sure that this issue has not already been filed
- I am reporting the issue to the correct repository (for multi-repository projects)
Expected Behavior
List deployment example in README.md should compile.
Current Behavior
$ go run main.go
# command-line-arguments
./main.go:24:58: cannot use ess.V1API (type *"github.com/elastic/cloud-sdk-go/pkg/client".Rest) as type *api.API in field value
Steps to Reproduce
- Add code from README.md to main.go.
- go run main.go
Context
Unable to get started with cloud-sdk.
marclop commented
sorry for the late fix, I've opened a PR (linked) which should address this issue.
wandergeek commented
Thanks mate!