From 0717261e646551d560df5ecf7da62c3763ee7442 Mon Sep 17 00:00:00 2001 From: jiangz222 Date: Sun, 1 May 2022 14:13:28 +0800 Subject: [PATCH] update readme (#241) --- README.md | 2 +- README_ZH.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d0f97bb..718a31a 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ Or Create index ```go - cli.CreateOneIndex(context.Background(), options.IndexModel{Key: []string{"name"}, Unique: true}) + cli.CreateOneIndex(context.Background(), options.IndexModel{Key: []string{"name"}}) cli.CreateIndexes(context.Background(), []options.IndexModel{{Key: []string{"id2", "id3"}}}) ``` diff --git a/README_ZH.md b/README_ZH.md index 4da3421..a747a04 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -93,7 +93,7 @@ go get github.com/qiniu/qmgo 创建索引 ```go - cli.CreateOneIndex(context.Background(), options.IndexModel{Key: []string{"name"}, Unique: true}) + cli.CreateOneIndex(context.Background(), options.IndexModel{Key: []string{"name"}}) cli.CreateIndexes(context.Background(), []options.IndexModel{{Key: []string{"id2", "id3"}}}) ```