Documentation ¶
Index ¶
- Constants
- func AddSlashToPathIfNeeded(path string) string
- func CloseIoReader(body io.ReadCloser)
- func ExtractLinkFromToken(token html.Token) (string, bool)
- func GetUrlRoot(websiteUrl string) (string, error)
- func GetWebPage(url string) (io.ReadCloser, error)
- func IsAnchorTag(tokenType html.TokenType, token html.Token) bool
- func IsValidUrl(websiteUrl string) bool
- func SumIntArr(array []int64) int64
Constants ¶
View Source
const LinkTagAttrHref string = "href"
View Source
const LinkTagName string = "a"
Variables ¶
This section is empty.
Functions ¶
func AddSlashToPathIfNeeded ¶
func CloseIoReader ¶
func CloseIoReader(body io.ReadCloser)
func GetUrlRoot ¶
GetUrlRoot returns scheme://host:port if possible
func GetWebPage ¶
func GetWebPage(url string) (io.ReadCloser, error)
func IsValidUrl ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.