Simple online paste bin written in golang, provides both api and webpage styled by Semantic-UI
Note: The webpages should be put into
./page
- View paste page
/v/<pasteId>
- Add paste page
/add
- Support more meta info
- Add user system
- Add input check
- Refine the webpage
HadInfo will read the hadInfo.ini
in the running folder.
But it could be change anyway by command arg config
.
Usage:
./hadInfo -config ./anotherConfig.ini
Config file content example (also the default value):
[db]
host = localhost
port = 5432
user = postgres
password = hadInfo
sslMode = disable
name = hadInfo