晓诗子o
postman测试时用绝对地址,url要填完整
weixin_慕数据4102001
weixin_慕数据4102001
我猜可能是在windows下的环境变量path里添加,一起等待标准答案。
weixin_慕移动1412138
慕勒0173693
是这个方法没有定义
精慕门9572415
公鸡喔喔喔
context.Background()
这个上下文还是需要的
一壶浊酒尽馀欢
redis服务进程启动了没
戴杰
是我搞错了 这个问题不存在 抄代码都抄错了 太粗心了
shuirong
redirect 路由是不是少写}
NaHCO3123
github.com/pilu/go-base62
qq_认真点_0
kingking1994
andyhui686666
这是系统对应的版本不同引起的
by考拉
Visual Studio Code 了解一下
qq_伱是我右手邊流年____0
不行的,要中转一下,不然就是直接引用了
Ian_Morris
https://github.com/hiningmeng/go-shortlink.git 我对着视频开发的,供参考
llych
https://en.wikipedia.org/wiki/Base64
因为base64包含'+'和'/'字符,对URL不友好,所以转成base62,这样只包含0-9A-Za-z字符
php_go的小白
这是自己定义的函数 注意看课程 后面有写出来
慕哥4344594
go get github.com/justinas/alice
慕哥4344594
手动上github 把包下载到本地使用
慕瓜0131582
opso
有解决方法了么???
慕斯卡1271597
sha1的冲突可能性很低,基本可以不考虑。
android_coco
github.com/pilu/go-base62
lili001
go get -u github.com/mattheath/base62
lili001
慕莱坞2988981
resdisClient 实现了Storage的方法
qq_无止境金助手软件_0
func toSha1(str string) string {
var (
sha = sha1.New()
)
return string(sha.Sum([]byte(str)))
}
DurianGuo