【文件属性】:
文件名称:shortlink:Go 中的示例短链接
文件大小:1.62MB
文件格式:ZIP
更新时间:2021-07-08 14:36:51
Go
###Go 中的短链接示例
###用:
go run server.go
or
./shortlink
curl -v "http://localhost:8888/api/shorten" -d "http://frelleto.com"
2014/12/06 21:48:47 Initializer server in port 8888...
2014/12/06 21:57:58 URL http://frelleto.com successfully shortened to http://localhost:8888/r/Xz+ss.
curl http://localhost:8888/r/Xz+ss
2014/12/07 14:26:24 Click successfully regitered for Xz+ss.
curl http://localhost:8888
【文件预览】:
shortlink-master
----server.go(3KB)
----url()
--------url.go(1KB)
--------memo_repository.go(756B)
----shortlink(5.77MB)
----.gitignore(15B)
----README.md(1KB)