url

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URL

type URL struct {
	// contains filtered or unexported fields
}

func Parse

func Parse(stdURL *url.URL) (*URL, error)

func ParseString

func ParseString(address string) (*URL, error)

func (*URL) Host

func (u *URL) Host() string

func (*URL) Hostname

func (u *URL) Hostname() string

func (*URL) IsReachable

func (u *URL) IsReachable(ctx context.Context) bool

func (*URL) Port

func (u *URL) Port() string

func (*URL) PortU16

func (u *URL) PortU16() uint16

func (*URL) Scheme

func (u *URL) Scheme() string

func (*URL) String

func (u *URL) String() string

Jump to

Keyboard shortcuts

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