## Installation
-Install the library package with `go get github.com/anacrolix/torrent`, or one of the provided cmds with `go get github.com/anacrolix/...`.
+Install the library package with `go get github.com/anacrolix/torrent`, or the provided cmds with `go get github.com/anacrolix/torrent/cmd/...`.
## Library example
$ md5sum ubuntu-14.04.1-desktop-amd64.iso
119cb63b48c9a18f31f417f09655efbd ubuntu-14.04.1-desktop-amd64.iso
$ echo such amaze
- wow
\ No newline at end of file
+ wow
Simple example:
- c, _ := NewClient()
- t, _, c.AddMagnet("magnet:?xt=urn:btih:ZOCMZQIPFFW7OLLMIC5HUB6BPCSDEOQU")
+ c, _ := torrent.NewClient(&torrent.Config{})
+ defer c.Close()
+ t, _ := c.AddMagnet("magnet:?xt=urn:btih:ZOCMZQIPFFW7OLLMIC5HUB6BPCSDEOQU")
t.DownloadAll()
c.WaitAll()
- log.Print("erhmahgerd, torrent downloaded")
- c.Close()
+ log.Print("ermahgerd, torrent downloaded")
+
*/
package torrent