InterfaceAddrs() function is used to return a list of the system’s unicast interface addresses of net package. function prototype: func InterfaceAddrs() ([]Addr, error) Return type:…
Category: net
IsPrivate() function is used to check whether IP is a private address or not. IsPrivate() function is of net package. function prototype: func (ip IP)…
In this tutorial, we are going to learn about IsLinkLocalUnicast() function of net package in go with example. IsLinkLocalUnicast() function is used to check whether…
In this tutorial, we are going to learn about IsLinkLocalMulticast() function of net package in go with example. IsLinkLocalMulticast() function is used to check whether…
In this tutorial, we are going to learn about IsInterfaceLocalMulticast() function of net package in go with example. IsInterfaceLocalMulticast() function is used to check whether…
Here, we will learn how to validate IPv4 and IPv6 address in go. We can do it by using either ParseIP() or IPv4() function in net…
Here, We will learn about type IP in net package in go. type IP provides multiple interfaces to play around IPv4 or IPv6 address. An…
Here, We will learn how to convert IPv4 or IPv6 address to string in go. We can do it by using String() function in net package…
Here, we will learn about how to split network address into host and port in go by using SplitHostPort() function in net package in go. SplitHostPort()…
Here, we will help you to understand how to close TCP connection in Go. We will learn about Close() method of net package by example…