url

package
v0.0.0-...-1ce522b Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package url implements a set of utility functions to parse URL.

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 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