package meta var tors = map[string]string{ "bsd": "OpenBSD_5.9_amd64_install59.iso-2016-03-29-0449.torrent", "ogg": "OpenBSD_songs_ogg-2016-03-25-0127.torrent", "deb": "debian-8.5.0-amd64-netinst.iso.torrent", "mul": "multi.torrent", } /* func TestPieces(t *testing.T) { tor, err := Open("../examples/" + tors["mul"]) if err != nil { t.Error(err) } for i := 0; i < tor.Info.NPieces(); i++ { n, off := tor.Info.FileOffset(i) t.Log(n, off) } } */