Documentation ¶
Index ¶
- func ComputeMd5(filePath string) ([]byte, error)
- func ComputeSha1(filePath string) ([]byte, error)
- func ComputeSha256(filePath string) ([]byte, error)
- func ComputeSha512(filePath string) ([]byte, error)
- type FileVerification
- type Files
- type Hash
- type MetaFile
- type Metalink
- type Resources
- type Size
- type Url
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeMd5 ¶
func ComputeSha1 ¶
func ComputeSha256 ¶
func ComputeSha512 ¶
Types ¶
type FileVerification ¶
type MetaFile ¶
type Metalink ¶
type Metalink struct { XMLName xml.Name `xml:"metalink"` Text string `xml:",chardata"` Files Files }
func ParseBytes ¶
Reads a metalink xml bytes slice and returns a metalink struct
func ParseFileFromUrl ¶
Downloads a metalink xml file by a http\https url and returns a metalink struct
func ParseString ¶
Reads a metalink xml string and returns a metalink struct
Click to show internal directories.
Click to hide internal directories.