address

package
v0.15.8 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultHost = "0.0.0.0"

DefaultHost used in cases, when no host was defined. For example, the string ":8080"

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Host string
	Port uint16
}

func Parse

func Parse(addr string) (address Address, err error)

func (Address) IsLocalhost added in v0.15.0

func (a Address) IsLocalhost() bool

func (Address) SetPort

func (a Address) SetPort(newPort uint16) Address

func (Address) String

func (a Address) String() string

Jump to

Keyboard shortcuts

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