An easy file transfer tool using http file server.
$ go get github.com/monochromegane/hoi
Download from the following url.
You can build download url.
$ hoi hoge.txt
http://192.168.0.100:8081/tx1lrmkkqenh5fy0izbassidb9t9l1na/hoge.txt
hoi
links the file to ~/.hoi/temp_public/random
, and it's document root directory for hoi server
.
hoi
allows to change port number for hoi server
~/.hoi/conf.json
{
"port": 8082
}
$ hoi --clear
- Add
hoi server
commands. (start|stop|status) - Add scheduler that clear public directory every some minutes.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request