urllib

package
v2.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsoluteURL

func AbsoluteURL(baseURL, input string) (string, error)

AbsoluteURL converts the input URL as absolute URL if necessary.

func Domain

func Domain(websiteURL string) string

Domain returns only the domain part of the given URL.

func IsAbsoluteURL

func IsAbsoluteURL(link string) bool

IsAbsoluteURL returns true if the link is absolute.

func IsHTTPS

func IsHTTPS(websiteURL string) bool

IsHTTPS returns true if the URL is using HTTPS.

func JoinBaseURLAndPath

func JoinBaseURLAndPath(baseURL, path string) (string, error)

JoinBaseURLAndPath returns a URL string with the provided path elements joined together.

func RootURL

func RootURL(websiteURL string) string

RootURL returns absolute URL without the path.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL