GitHub - zaaack/go-bin: A go file/text/url sharing service, inspired by microbin · GitHub
/" data-turbo-transient="true" />
Skip to content
Search or jump to...
Search code, repositories, users, issues, pull requests...
-->
Search
Clear
Search syntax tips
Provide feedback
--><br>We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contacted
Cancel
Submit feedback
Saved searches
Use saved searches to filter your results more quickly
-->
Name
Query
To see all available qualifiers, see our documentation.
Cancel
Create saved search
Sign in
/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up
Appearance settings
Resetting focus
You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
zaaack
go-bin
Public
Notifications<br>You must be signed in to change notification settings
Fork
Star
main
BranchesTags
Go to file
CodeOpen more actions menu
Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit
History<br>20 Commits<br>20 Commits
.github/workflows
.github/workflows
cmd/go-bin
cmd/go-bin
docs
docs
internal
internal
.gitignore
.gitignore
AGENTS.md
AGENTS.md
LICENSE
LICENSE
README.md
README.md
README_EN.md
README_EN.md
generate.go
generate.go
go.mod
go.mod
go.sum
go.sum
install.ps1
install.ps1
install.sh
install.sh
View all files
Repository files navigation
go-bin
English | 中文
基于 Go 的轻量文件分享网页服务,支持分享文件、文本和链接。
安装
Linux / macOS:
curl -fsSL https://raw.githubusercontent.com/zaaack/go-bin/main/install.sh | bash
Windows (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"<br>$env:GOPROXY = "https://goproxy.cn,direct"<br>go run ./cmd/go-bin serve
也可以先生成可执行文件:
$env:GO111MODULE = "on"<br>$env:GOPROXY = "https://goproxy.cn,direct"<br>go generate .
参数
go run ./cmd/go-bin serve \<br>--addr :8080 \<br>--db data.db \<br>--uploads-dir uploads \<br>--base-url http://localhost:8080 \<br>--default-public=true \<br>--default-pin=false \<br>--default-expire=3mo
--db 支持指定 sqlite 文件位置。
--default-expire 支持:
never
1d
7d
30d
1mo
3mo
1y
页面
/ 公开列表页
/new 发布页
/s/{slug} 详情页
/download/{slug} 文件下载
截图
列表页<br>发布页<br>详情页
许可证
本项目使用 MIT 许可证。
About
A go file/text/url sharing service, inspired by microbin
Topics
go
file-sharing
self-hosted
single-executable
microbin
Resources
Readme
License
MIT license
Uh oh!
There was an error while loading. Please reload this page.
Activity
Stars
stars
Watchers
watching
Forks
fork
Report repository
Releases
v0.2.0
Latest
May 29, 2026
+ 1 release
Packages
Uh oh!
There was an error while loading. Please reload this page.
Contributors
zaaack<br>Zack Young
Languages
Go<br>52.7%
HTML<br>19.4%
CSS<br>14.9%
JavaScript<br>10.2%
PowerShell<br>1.5%
Shell<br>1.3%
You can’t perform that action at this time.