Skip to content
Beego短链接服务
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf
controllers
models
routers
tests
utils
vo
.gitignore
README.md
go.mod
main.go

README.md

go-short-url

使用beego开发短链接服务

个人服务部署

修改conf > app.conf 下的

sinaSource 需要在新浪开发者中心申请

使用方式

访问

http://127.0.0.1:8080/v1/short?url=需要转换的url

返回结果

{
    "code": 200,
    "message": "",
    "data": {
        "long_url": "http://www.java1234.com/a/javabook/",
        "short_url": "http://t.cn/8sd9Xa4"
    }
}
You can’t perform that action at this time.