Categorygithub.com/mitander/bitrush
modulepackage
0.0.0-20231017173730-31f29495816f
Repository: https://github.com/mitander/bitrush.git
Documentation: pkg.go.dev

# README

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

  • Binary
$ go install github.com/mitander/bitrush
  • Library
$ go get -u github.com/mitander/bitrush

Usage

  • 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)
}

License

MIT License.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author