init
This commit is contained in:
10
pkg/base62/tinyurl.go
Normal file
10
pkg/base62/tinyurl.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package base62
|
||||
|
||||
import (
|
||||
mh "github.com/spaolacci/murmur3"
|
||||
)
|
||||
|
||||
func TinyUrl(in string) string {
|
||||
return EncodeBase62(int(mh.Sum32([]byte(in))))
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user