Documentation ¶
Index ¶
- Constants
- func AppendUnique[E comparable](s []E, v E) []E
- func BaseUrl(urlStr string) string
- func Cleanup(s string) string
- func CleanupInline(s string) string
- func CleanupLang(lang string) string
- func ConvertDuration(str string) time.Duration
- func Deduplicate[E comparable](s []E) []E
- func DomainZone(urlStr string) string
- func FindFloat(val interface{}) float64
- func FindInt(val interface{}) int
- func FindNumber(str string) float64
- func FormatFraction(f float64) string
- func HostAlias(urlStr string) string
- func Hostname(urlStr string) string
- func IsAbsolute(urlStr string) bool
- func LanguageByDomain(tld string) (string, bool)
- func ParseDuration(str string) (time.Duration, bool)
- func ParseFloat(str string) (float64, error)
- func ParseFraction(str string) (float64, error)
- func ParseInt(str string) (int, error)
- func ReadUrl(url string, headers http.Header) ([]byte, *url.URL, error)
- func RemoveDoubleSpace(str string) string
- func RemoveNewLines(s string) string
- func RemoveSpaces(s string) string
- func RemoveTrailingSlash(urlStr string) string
- func SplitParagraphs(s string) []string
- func SplitTitle(title string) []string
- func ToAbsoluteUrl(base *url.URL, urlStr string) string
- func TrimZeroWidthSpaces(s string) string
- func Unquote(s string) string
Constants ¶
View Source
const Fractions = "¼½¾⅐⅑⅒⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞"
Variables ¶
This section is empty.
Functions ¶
func AppendUnique ¶
func AppendUnique[E comparable](s []E, v E) []E
func CleanupInline ¶
func CleanupLang ¶
func ConvertDuration ¶
func Deduplicate ¶
func Deduplicate[E comparable](s []E) []E
func DomainZone ¶
func FindNumber ¶
func FormatFraction ¶
func IsAbsolute ¶
func LanguageByDomain ¶
func ParseFloat ¶
func ParseFraction ¶
func RemoveDoubleSpace ¶
func RemoveNewLines ¶
func RemoveSpaces ¶
func RemoveTrailingSlash ¶
func SplitParagraphs ¶
func SplitTitle ¶
func TrimZeroWidthSpaces ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.