address

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 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) 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