bitrush
A minimal BitTorrent library written in Go
Disclaimer
This project is work in progress and shouldn't be used to do anything remotely serious
Installation
$ go install github.com/mitander/bitrush
$ go get -u github.com/mitander/bitrush
Usage
$ bitrush -f <path-to-torrent-file>
path := "example.torrent"
m, err := metainfo.NewMetaInfo(path)
if err != nil {
log.Fatal(err)
}
t, err := torrent.NewTorrent(m)
if err != nil {
log.Fatal(err)
}
err = t.Download()
if err != nil {
log.Fatal(err)
}
License
MIT License.