Versions in this module Expand all Collapse all v0 v0.1.6 Jan 25, 2025 v0.1.5 Dec 12, 2024 Changes in this version + const FieldCrc32Sum + const FieldFileTree + const FieldFiles + const FieldLength + const FieldMd5Sum + const FieldMetaVersion + const FieldName + const FieldPath + const FieldPieceLayers + const FieldPieceLength + const FieldPieceRoot + const FieldPieces + const FieldPrivate + const FieldSha1Sum + const FieldSha256Sum + const InfoSectionFormat_MultiFile + const InfoSectionFormat_SingleFile + const InfoSectionFormat_Unknown + const PathElement_Dot1 + const PathElement_Dot2 + const SectionAnnounce + const SectionAnnounceList + const SectionComment + const SectionCreatedBy + const SectionCreationDate + const SectionEncoding + const SectionInfo + const SectionPieceLayers + const SpaceStr + const TimeFormat1A + const TimeFormat1B + const TimeFormat2A + const TimeFormat2B + const TimeFormat2C + const TimeFormat2D + const TimeFormat3A + const TimeFormat3B + const Version_One + const Version_Two + const Version_Unknown + func ParseBrokenTime(s string) (t time.Time, err error) + type AnnounceAddress struct + IsBroken bool + RawData string + URL *url.URL + func NewAnnounceAddressFromString(s string) (aa *AnnounceAddress, err error) + func NewAnnounceAddressListFromStringArray(sa []string) (aal []AnnounceAddress, err error) + type Dictionary []b.DictionaryItem + func InterfaceAsDictionary(x any) (d Dictionary, err error) + func (d *Dictionary) FillFileParameters(outNode *ft.FileTreeNode) (err error) + func (d *Dictionary) FindDictionaryItem(name string) (item *b.DictionaryItem, err error) + func (d *Dictionary) GetFieldValue(fieldName string) (fv any, err error) + func (d *Dictionary) GetFieldValueAsInt(fieldName string) (fv int, err error) + func (d *Dictionary) GetFieldValueAsString(fieldName string) (fv string, err error) + func (d *Dictionary) GetFieldValueAsStringArray(fieldName string) (fv []string, err error) + func (d *Dictionary) GuessFormat() (format InfoSectionFormat) + func (d *Dictionary) GuessVersion() (version Version, err error) + func (d *Dictionary) IsFieldPresent(fieldName string) (isFieldPresent bool) + func (d *Dictionary) IsFileParametersNodeV2() bool + func (d *Dictionary) ReadFilePath(isf InfoSectionFormat) (filePath []string, err error) + func (d *Dictionary) ReadFileSize() (fs int, err error) + func (d *Dictionary) ReadOptionalFileCrc32() (isCrc32Set bool, crc32 *hash.Crc32Sum, err error) + func (d *Dictionary) ReadOptionalFileMd5() (isMd5Set bool, md5 *hash.Md5Sum, err error) + func (d *Dictionary) ReadOptionalFileSha1() (isSha1Set bool, sha1 *hash.Sha1Sum, err error) + func (d *Dictionary) ReadOptionalFileSha256() (isSha256Set bool, sha256 *hash.Sha256Sum, err error) + type File struct + HashSum hash.FileHash + Path []string + Size int + func (f *File) SanitiseFilePath() + type InfoSectionFormat byte + type Version = string