forked from mirror/buntdb
Update README.md
This commit is contained in:
parent
e49c1a2edd
commit
89544ad8fc
|
@ -456,7 +456,8 @@ Any index can be put in descending order by wrapping it's less function with `bu
|
|||
```go
|
||||
db.CreateIndex("last_name_age", "*",
|
||||
buntdb.IndexJSON("name.last"),
|
||||
buntdb.Desc(buntdb.IndexJSON("age")))
|
||||
buntdb.Desc(buntdb.IndexJSON("age")),
|
||||
)
|
||||
```
|
||||
|
||||
This will create a multi value index where the last name is ascending and the age is descending.
|
||||
|
|
Loading…
Reference in New Issue