url

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 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 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