6 "github.com/anacrolix/missinggo"
8 "github.com/anacrolix/torrent"
12 c, _ := torrent.NewClient(nil)
14 t, _ := c.AddMagnet("magnet:?xt=urn:btih:ZOCMZQIPFFW7OLLMIC5HUB6BPCSDEOQU")
18 log.Print("ermahgerd, torrent downloaded")
21 func Example_fileReader() {
28 // Access the parts of the torrent pertaining to f. Data will be
29 // downloaded as required, per the configuration of the torrent.Reader.
30 _ = missinggo.NewSectionReadSeeker(r, f.Offset(), f.Length())