File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -9,18 +9,18 @@ under MIT License (same as the original implementations)
99Original implementations by [ Ivan Akimov] ( https://github.com/ivanakimov )
1010
1111### Setup
12- <pre >go get github.com/speps/go-hashids</pre >
12+ <pre >go get github.com/speps/go-hashids/v2 </pre >
1313
1414CLI tool :
1515
16- <pre >go get github.com/speps/go-hashids/cmd/hashid</pre >
16+ <pre >go get github.com/speps/go-hashids/v2/ cmd/hashid</pre >
1717
1818### Example
1919``` go
2020package main
2121
2222import " fmt"
23- import " github.com/speps/go-hashids"
23+ import " github.com/speps/go-hashids/v2 "
2424
2525func main () {
2626 hd := hashids.NewData ()
@@ -54,6 +54,10 @@ Let me know if I forgot anyone of course.
5454
5555### Changelog
5656
57+ 2021/05/04
58+
59+ * v2.0.1 - Added module support with /v2 suffix
60+
57612017/05/09
5862
5963* Changed API
Original file line number Diff line number Diff line change 77 "strconv"
88 "strings"
99
10- "github.com/speps/go-hashids"
10+ "github.com/speps/go-hashids/v2 "
1111)
1212
1313func main () {
Original file line number Diff line number Diff line change 1- module github.com/speps/go-hashids
1+ module github.com/speps/go-hashids/v2
22
33go 1.14
Original file line number Diff line number Diff line change 11// Go implementation of http://www.hashids.org under MIT license
22// Generates hashes from an array of integers, eg. for YouTube like hashes
3- // Setup: go get github.com/speps/go-hashids
3+ // Setup: go get github.com/speps/go-hashids/v2
44// Original implementations by Ivan Akimov at https://github.com/ivanakimov
55// Thanks to Rémy Oudompheng and Peter Hellberg for code review and fixes
66
You can’t perform that action at this time.
0 commit comments