util

package
v4.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(u1, u2 *url.URL) bool

Equal returns if both URLs have the same hostname, port and scheme or not.

func NormalizeKeyserverURI

func NormalizeKeyserverURI(uri string) (*url.URL, error)

NormalizeKeyserverURI is normalizing a URI string by converting protocol scheme hkp:// and hkps:// to their corresponding http:// and https:// protocol scheme and returns the parsed URI with the corresponding scheme.

func SameKeyserver

func SameKeyserver(u1, u2 string) bool

SameKeyserver returns if two URIs point to the same keyserver or not, URI are also normalized meaning by example that hkp://localhost is equivalent to http://localhost:11371.

func SameURI

func SameURI(u1, u2 string) bool

SameURI returns if two URIs point to the same service or not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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