Skip to content

mitander/bitrush

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A minimal BitTorrent library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages