Add comments to metainfo.Magnet fields

This commit is contained in:
Matt Joiner 2019-09-24 16:29:29 +10:00
parent 584cdbdc60
commit f0843c30d0
1 changed files with 4 additions and 4 deletions

View File

@ -11,10 +11,10 @@ import (
// Magnet link components. // Magnet link components.
type Magnet struct { type Magnet struct {
InfoHash Hash InfoHash Hash // Expected in this implementation
Trackers []string Trackers []string // "tr" values
DisplayName string DisplayName string // "dn" value, if not empty
Params url.Values Params url.Values // All other values, such as "x.pe", "as", "xs" etc.
} }
const xtPrefix = "urn:btih:" const xtPrefix = "urn:btih:"