urlutil

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package urlutil provides utility functions for URL manipulation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPort

func DefaultPort(scheme string) string

func SplitHostPort

func SplitHostPort(hostPort string) (host, port string)

SplitHostPort separates host and port. If the port is not valid, it returns the entire input as host, and it doesn't check the validity of the host. Unlike net.SplitHostPort, but per RFC 3986, it requires ports to be numeric.

From Go's net/url package. Copyright 2009 The Go Authors. All rights reserved.

Types

This section is empty.

Jump to

Keyboard shortcuts

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