File tree 4 files changed +10
-6
lines changed
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)
9
9
Original implementations by [ Ivan Akimov] ( https://github.com/ivanakimov )
10
10
11
11
### Setup
12
- <pre >go get github.com/speps/go-hashids</pre >
12
+ <pre >go get github.com/speps/go-hashids/v2 </pre >
13
13
14
14
CLI tool :
15
15
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 >
17
17
18
18
### Example
19
19
``` go
20
20
package main
21
21
22
22
import " fmt"
23
- import " github.com/speps/go-hashids"
23
+ import " github.com/speps/go-hashids/v2 "
24
24
25
25
func main () {
26
26
hd := hashids.NewData ()
@@ -54,6 +54,10 @@ Let me know if I forgot anyone of course.
54
54
55
55
### Changelog
56
56
57
+ 2021/05/04
58
+
59
+ * v2.0.1 - Added module support with /v2 suffix
60
+
57
61
2017/05/09
58
62
59
63
* Changed API
Original file line number Diff line number Diff line change 7
7
"strconv"
8
8
"strings"
9
9
10
- "github.com/speps/go-hashids"
10
+ "github.com/speps/go-hashids/v2 "
11
11
)
12
12
13
13
func 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
2
2
3
3
go 1.14
Original file line number Diff line number Diff line change 1
1
// Go implementation of http://www.hashids.org under MIT license
2
2
// 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
4
4
// Original implementations by Ivan Akimov at https://github.com/ivanakimov
5
5
// Thanks to Rémy Oudompheng and Peter Hellberg for code review and fixes
6
6
You can’t perform that action at this time.
0 commit comments