没有合适的资源?快使用搜索试试~ 我知道了~
leetcode中国-short:URLshorteningservice.高性能短链接服务
共21个文件
go:14个
md:2个
yml:1个
1星 需积分: 10 1 下载量 52 浏览量
2021-06-29
20:39:37
上传
评论
收藏 16KB ZIP 举报
温馨提示
leetcode中国短的 使用杂音散列函数。 URL 缩短服务。 用法 package main import ( "fmt" "github.com/golang/glog" "github.com/googege/short" "os" ) var ( path = "https://t.cn/" longURL = "https://github.com/googege/GOFamily/blob/master/基础知识/算法/算法题/leetcode/1.md" ) func main () { db := short . NewMapDB () // add db engine to short. s := short . NewShort ( db ) // shortURL , err := s . ShortAdd ( longURL ) if err != nil { glog . Error (
资源推荐
资源详情
资源评论
收起资源包目录
short-master.zip (21个子文件)
short-master
history.md 68B
go.mod 330B
.github
workflows
codeql-analysis.yml 3KB
db_test.go 744B
go.sum 11KB
db.go 1KB
base62
base62.go 1KB
base62_test.go 616B
short_test.go 14B
mysql_test.go 14B
example
example.go 951B
mysql.go 2KB
LICENSE 1KB
redis.go 1KB
README.md 2KB
bloom
bloom_test.go 465B
bloom.go 345B
redis_test.go 14B
short.go 1KB
hash
hash.go 235B
.gitignore 29B
共 21 条
- 1
资源评论
- miner_wf2022-07-04跑不起来。。。
weixin_38682076
- 粉丝: 6
- 资源: 917
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功