• MineBBS入站考试已经上线!想要成为【正式会员】解锁更多功能吗?快来参与吧!【点我去看】
【Golang】轻量级的短链接服务-FiFuShortLink

Source Code 【Golang】轻量级的短链接服务-FiFuShortLink v1.0

Source of resources
Original
Copyright link
#
Applicable platforms
Windows / Linux / Mac
Language
Chinese(Simplified)

介绍


FiFuShortLink 是一个使用Golang开发的一款轻量级、零依赖、高性能的短链接服务

演示


命令行


Snipaste_2021-07-22_02-00-48.png


主服务


jumptest.gif


Cli工具


putlinktest.gif


部署


源码部署


安装并配置Golang开发环境
git clone https://github.com/Core2002/FiFuShortLink
cd FiFuShortLink
go build
FiFuShortLink

二进制部署


Releases内下载好所在平台的二进制文件
运行即可

配置文件及说明


系统使用Toml作为配置文件、请先学习Toml语法


# cli工具:直接将链接作为参数传入主程序即可注册映射,
# 多个链接用空格隔开,退出码即新增链接个数,
# 例: FiFuShortLink https://golang.google.cn https://www.bilibili.com
# 不传参数则直接启动服务
# 例: FiFuShortLink

# 内网地址+端口
Addr = ":80"

# / 目录或异常左值的跳转的地址
# 例: http://{Addr} -> {Core}
Core = "https://space.bilibili.com/30924239"

# 栈顶指针
Top = 2

# 字符串-字符串键值对,从左往右跳转
# 例: http://{Addr}/{i} -> {Links}
[Links]
0 = "https://github.com/Core2002"
1 = "https://gitee.com/NekokeCore"
2 = "https://www.fifu.fun"
Author
钟小白Core
Downloads
116
Views
799
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from 钟小白Core

Share this resource