You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,28 @@ func main() {
93
93
94
94
Check out the documentation on [pkg.go.dev/github.com/plar/go-adaptive-radix-tree/v2](https://pkg.go.dev/github.com/plar/go-adaptive-radix-tree/v2).
95
95
96
+
# Migration from v1 to v2
97
+
98
+
- update `import` statement
99
+
100
+
```
101
+
from `art "github.com/plar/go-adaptive-radix-tree"`
102
+
to `art "github.com/plar/go-adaptive-radix-tree/v2"`
103
+
```
104
+
105
+
- update go module dependency
106
+
107
+
```
108
+
$ go get github.com/plar/go-adaptive-radix-tree/v2
109
+
$ go mod tidy
110
+
```
111
+
112
+
If you had implemented your own version of the `Tree` interface, then you need to update the following method to support `options`. These are the only changes in the interface.
[plar/go-adaptive-radix-tree](https://github.com/plar/go-adaptive-radix-tree) outperforms [kellydunn/go-art](https://github.com/kellydunn/go-art) by avoiding memory allocations during search operations.
0 commit comments