This commit is contained in:
C菌
2022-04-20 03:50:21 +08:00
commit c113e38d82
11 changed files with 465 additions and 0 deletions

10
pkg/base62/tinyurl.go Normal file
View 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))))
}