]> Sergey Matveev's repositories - btrtrc.git/blob - doc.go
Publicly expose Torrent.GotInfo
[btrtrc.git] / doc.go
1 /*
2 Package torrent implements a torrent client.
3
4 Simple example:
5
6         c, _ := torrent.NewClient(&torrent.Config{})
7         defer c.Close()
8         t, _ := c.AddMagnet("magnet:?xt=urn:btih:ZOCMZQIPFFW7OLLMIC5HUB6BPCSDEOQU")
9         <-t.GotInfo
10         t.DownloadAll()
11         c.WaitAll()
12         log.Print("ermahgerd, torrent downloaded")
13
14
15 */
16 package torrent