Fix Go snippet

This commit is contained in:
Abdon Pijpelink
2026-01-07 14:02:14 +01:00
parent 3436f37df4
commit 7262e72a2b
2 changed files with 1 additions and 6 deletions
@@ -10,9 +10,6 @@ client, err := qdrant.NewClient(&qdrant.Config{
Port: 6334,
})
if err != nil {
panic(err)
client.CreateCollection(context.Background(), &qdrant.CreateCollection{
CollectionName: "{collection_name}",
VectorsConfig: qdrant.NewVectorsConfig(&qdrant.VectorParams{
@@ -12,9 +12,7 @@ func Main() {
Port: 6334,
})
if err != nil {
panic(err)
} // @hide
if err != nil { panic(err) } // @hide
client.CreateCollection(context.Background(), &qdrant.CreateCollection{
CollectionName: "{collection_name}",