package
0.53.1
Repository: https://github.com/shulhan/share.git
Documentation: pkg.go.dev

# Packages

Package html extends the golang.org/x/net/html by providing simplified methods to Node.

# Functions

ConvertStandard library network value from string to Type.
IsHostnameValid will return true if hostname is valid, otherwise it will return false.
IsIPv4 will return true if string representation of IP contains three dots, for example "127.0.0.1".
IsIPv6 will return true if string representation of IP contains two or more colons ":", for example, "::1".
IsTypeTCP will return true if t is type of TCP(4,6); otherwise it will return false.
IsTypeTransport will return true if t is type of transport layer, i.e.
IsTypeUDP will return true if t is type of UDP(4,6); otherwise it will return false.
NewPoll create and initialize new poll using epoll for Linux system or kqueue for BSD or Darwin (macOS).
NewResolvConf open resolv.conf file in path and return the parsed records.
ParseIPPort parse address into hostname/address, IP and port.
ParseTCPAddr parse IP address into standard library TCP address.
ParseUDPAddr parse IP address into standard library UDP address.
Read packet from network.
ToDotIPv6 convert the IPv6 address format from "::1" format into "0.0.0.0 ..
WaitAlive try to connect to network at address until timeout reached.

# Constants

List of possible network type.
List of possible network type.
List of possible network type.
List of possible network type.
List of possible network type.
List of possible network type.
List of possible network type.
List of possible network type.
List of possible network type.
List of possible network type.
List of possible network type.
List of possible network type.
List of possible network type.

# Variables

ErrHostAddress define an error if address of connection is invalid.
ErrReadTimeout define an error when [Read] operation receive no data after waiting for specific duration.

# Structs

ResolvConf contains value of resolver configuration file.

# Interfaces

Poll represent an interface to network polling.
PollEvent define an interface for poll event, [unix.EpollEvent] on Linux or [unix.Kevent_t] on BSD.

# Type aliases

Type of network.