mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-30 08:28:32 +02:00
This commit both: - Fixes pre-existing mistakes in snippets, aka wrong code samples. - Adds hidden (`@hide`) statements that do not appear in the docs, but satisfy typecheckers.
17 lines
323 B
Go
17 lines
323 B
Go
package snippet
|
|
|
|
import "context"
|
|
import "github.com/qdrant/go-client/qdrant" // @hide
|
|
|
|
func Main() {
|
|
// @hide-start
|
|
client, err := qdrant.NewClient(&qdrant.Config{
|
|
Host: "localhost",
|
|
Port: 6334,
|
|
})
|
|
if err != nil { panic(err) }
|
|
// @hide-end
|
|
|
|
client.CollectionExists(context.Background(), "my_collection")
|
|
}
|