url

package
v0.0.0-...-4fa1762 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHost

func GetHost(url string) string

GetHost tries to determine the host from the passed url and returns it. The returned host will be stripped of the "www." subdomain, if it exists. e.g. GetHost("https://www.api.example.com") --> "api.example.com".

Types

This section is empty.

Jump to

Keyboard shortcuts

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