A command-line BitTorrent client implementing BEP 3: The BitTorrent Protocol Specification (torrent file support) and BEP 9: Extension for Peers to Send Metadata Files (magnet link support).
💡 Interested in how this works under the hood? Check out the wiki!
First build the btclient binary:
go buildNext, either download a torrent starting from a magnet link:
./btclient -type=magnet sample.magnetOr download a torrent starting from a .torrent file:
./btclient -type=torrent sample.torrentCodeCrafters for their sample .torrent and .magnet files.