A minimal BitTorrent library written in Go
This project is work in progress and shouldn't be used to do anything remotely serious
- Binary
$ go install github.com/mitander/bitrush
- Library
$ go get -u github.com/mitander/bitrush
- Binary
$ bitrush -f <path-to-torrent-file>
- Library
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)
}