Registry /
database / opensearch-project-opensearch-go
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
opensearch
✓ github.com/opensearch-project/opensearch-go
Create an OpenSearch client and connect to a cluster.
package main
import (
"fmt"
"github.com/opensearch-project/opensearch-go"
)
func main() {
client, err := opensearch.NewClient(opensearch.Config{Addresses: []string{"http://localhost:9200"}})
if err != nil {
fmt.Println(err)
return
}
fmt.Println(client)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.