]> Sergey Matveev's repositories - btrtrc.git/commitdiff
TODO
authorMatt Joiner <anacrolix@gmail.com>
Wed, 18 Jan 2017 01:09:51 +0000 (12:09 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 18 Jan 2017 01:09:51 +0000 (12:09 +1100)
metainfo/info.go

index 462288d33437c236fade46744aef871b8a3bca65..7fbc88e9546bfa79a2918dd6a76c683406139006 100644 (file)
@@ -14,13 +14,14 @@ import (
 
 // The info dictionary.
 type Info struct {
-       PieceLength int64      `bencode:"piece length"`
-       Pieces      []byte     `bencode:"pieces"`
-       Name        string     `bencode:"name"`
-       Length      int64      `bencode:"length,omitempty"`
-       Private     *bool      `bencode:"private,omitempty"`
-       Source      string     `bencode:"source,omitempty"`
-       Files       []FileInfo `bencode:"files,omitempty"`
+       PieceLength int64  `bencode:"piece length"`
+       Pieces      []byte `bencode:"pieces"`
+       Name        string `bencode:"name"`
+       Length      int64  `bencode:"length,omitempty"`
+       Private     *bool  `bencode:"private,omitempty"`
+       // TODO: Document this field.
+       Source string     `bencode:"source,omitempty"`
+       Files  []FileInfo `bencode:"files,omitempty"`
 }
 
 // This is a helper that sets Files and Pieces from a root path and its