Documentation ¶
Overview ¶
Package mega contains functions that can be used to accurately extract and validate Mega links.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delegate ¶
Delegate takes a string as an argument and returns a slice of valid Mega links found within the response (if any) and an error
func ExtractFileCount ¶
ExtractFileCount takes the body response/contents of a Mega page (raw source/html (formatted as string)) as an argument and returns the file count as an integer. It will return -1 in the case of a syntax error. This will only work on Mega folders and not Mega files.
func ExtractSize ¶
ExtractSize takes the body response/contents of a Mega page (raw source/html (formatted as string)) as an argument and returns the total/cumulative file/folder size as a string.
Types ¶
This section is empty.