File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 8
8
9
9
``` shell
10
10
11
- go get github.com/manticoresoftware/manticoresearch-go@v6.0 .0
11
+ go get github.com/manticoresoftware/manticoresearch-go@v1.6 .0
12
12
13
13
```
14
14
15
15
## Getting Started
16
16
17
17
go mod init main
18
- go get github.com/manticoresoftware/manticoresearch-go@v6.0 .0
18
+ go get github.com/manticoresoftware/manticoresearch-go@v1.6 .0
19
19
20
20
``` go
21
21
22
22
package main
23
23
24
24
import (
25
25
" context"
26
- " fmt:
26
+ " fmt"
27
27
Manticoresearch " github.com/manticoresoftware/manticoresearch-go"
28
28
)
29
29
30
30
func main () {
31
31
32
- # Create an instance of API client
32
+ // Create an instance of API client
33
33
configuration := Manticoresearch.NewConfiguration ()
34
34
configuration.Servers [0 ].URL = " http://localhost:9308"
35
35
apiClient := Manticoresearch.NewAPIClient (configuration)
36
36
37
- # Perform insert and search operations
37
+ // Perform insert and search operations
38
38
tableName := " products"
39
39
indexDoc := map [string ]interface {} {" title" : " Crossbody Bag with Tassel" }
40
40
indexReq := Manticoresearch.NewInsertDocumentRequest (tableName, indexDoc)
You can’t perform that action at this time.
0 commit comments