util

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExternalIP

func ExternalIP() (string, error)

ExternalIP returns the external IP address via the default route to the // Internet.

func ValidateURLSuffix

func ValidateURLSuffix(rawurl, domainSuffix string) error

ValidateURLSuffix will parse a provided url, extract the hostname, and compare it to the provided domain suffix. If the extracted hostname does not have the expected suffix, an error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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