Documentation ¶
Index ¶
Constants ¶
View Source
const (
SoftHyphen = "\u00ad"
)
Variables ¶
This section is empty.
Functions ¶
func HostToDomain ¶
HostToDomain gets the domain from the hostname.
func TextFromHtml ¶
TextFromHtml returns all the text from html. Based on: https://stackoverflow.com/questions/44441665/how-to-extract-only-text-from-html-in-golang
func URLToDomain ¶
URLToDomain normalizes the URL to a domain. Returns empty string on error.
Types ¶
Click to show internal directories.
Click to hide internal directories.