]> Sergey Matveev's repositories - btrtrc.git/commitdiff
New go fmt on doc comments
authorMatt Joiner <anacrolix@gmail.com>
Mon, 5 Dec 2022 06:49:27 +0000 (17:49 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 6 Dec 2022 23:44:05 +0000 (10:44 +1100)
doc.go
storage/interface.go

diff --git a/doc.go b/doc.go
index f1378076bc61702c661cc2d1c3200271418207d6..bc90c0dccb26cbc9aefa17fb8031a91d5c8db4dd 100644 (file)
--- a/doc.go
+++ b/doc.go
@@ -1,24 +1,24 @@
 /*
 Package torrent implements a torrent client. Goals include:
* Configurable data storage, such as file, mmap, and piece-based.
* Downloading on demand: torrent.Reader will request only the data required to
-   satisfy Reads, which is ideal for streaming and torrentfs.
 - Configurable data storage, such as file, mmap, and piece-based.
 - Downloading on demand: torrent.Reader will request only the data required to
+    satisfy Reads, which is ideal for streaming and torrentfs.
 
 BitTorrent features implemented include:
* Protocol obfuscation
* DHT
* uTP
* PEX
* Magnet links
* IP Blocklists
* Some IPv6
* HTTP and UDP tracker clients
* BEPs:
-  -  3: Basic BitTorrent protocol
-  -  5: DHT
-  -  6: Fast Extension (have all/none only)
-  -  7: IPv6 Tracker Extension
-  -  9: ut_metadata
 - Protocol obfuscation
 - DHT
 - uTP
 - PEX
 - Magnet links
 - IP Blocklists
 - Some IPv6
 - HTTP and UDP tracker clients
 - BEPs:
+  - 3: Basic BitTorrent protocol
+  - 5: DHT
+  - 6: Fast Extension (have all/none only)
+  - 7: IPv6 Tracker Extension
+  - 9: ut_metadata
   - 10: Extension protocol
   - 11: PEX
   - 12: Multitracker metadata extension
index 3d1bfb3bfe27880990a1ff318103b1bc1851cbfb..b28a52b0efb8cfa1d47556e4e461c6e4a9caebdf 100644 (file)
@@ -30,8 +30,9 @@ type TorrentImpl struct {
 }
 
 // Interacts with torrent piece data. Optional interfaces to implement include:
-//   io.WriterTo, such as when a piece supports a more efficient way to write out incomplete chunks.
-//   SelfHashing, such as when a piece supports a more efficient way to hash its contents.
+//
+//     io.WriterTo, such as when a piece supports a more efficient way to write out incomplete chunks.
+//     SelfHashing, such as when a piece supports a more efficient way to hash its contents.
 type PieceImpl interface {
        // These interfaces are not as strict as normally required. They can
        // assume that the parameters are appropriate for the dimensions of the