English | 中文
基于 Go 的轻量文件分享网页服务,支持分享文件、文本和链接。
Linux / macOS:
curl -fsSL https://raw.githubusercontent.com/zaaack/go-bin/main/install.sh | bashWindows (PowerShell):
irm https://raw.githubusercontent.com/zaaack/go-bin/main/install.ps1 | iex也可以从 Releases 页面手动下载。
- 公开分享会出现在列表页
- 私有分享使用随机 URL,仅凭链接访问
- 文件尽量保留原文件名展示
- 文本和链接在列表页展示前 2 行摘要
- 列表页支持下载文件、复制文本、复制 URL、打开 URL
- 详情页支持下载、复制下载链接、复制文本、复制 URL、打开 URL
- 图片和视频支持在线预览
- 支持置顶
- 支持过期时间和永不过期
- SQLite 存元数据,
uploads/存文件
$env:GO111MODULE = "on"
$env:GOPROXY = "https://goproxy.cn,direct"
go run ./cmd/go-bin serve也可以先生成可执行文件:
$env:GO111MODULE = "on"
$env:GOPROXY = "https://goproxy.cn,direct"
go generate .go run ./cmd/go-bin serve \
--addr :8080 \
--db data.db \
--uploads-dir uploads \
--base-url http://localhost:8080 \
--default-public=true \
--default-pin=false \
--default-expire=3mo--db 支持指定 sqlite 文件位置。
--default-expire 支持:
never1d7d30d1mo3mo1y
/公开列表页/new发布页/s/{slug}详情页/download/{slug}文件下载
| 列表页 | 发布页 | 详情页 |
|---|---|---|
![]() |
![]() |
![]() |
本项目使用 MIT 许可证。


