From: Matt Joiner Date: Wed, 18 Jan 2017 01:09:51 +0000 (+1100) Subject: TODO X-Git-Tag: v1.0.0~490 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=902e40dd67bae388b7c4e4880ec2938eee1897b4;p=btrtrc.git TODO --- diff --git a/metainfo/info.go b/metainfo/info.go index 462288d3..7fbc88e9 100644 --- a/metainfo/info.go +++ b/metainfo/info.go @@ -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