bitrush

command module
v0.0.0-...-31f2949 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 7 Imported by: 0

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL