Documentation ¶ Index ¶ func IpFormat(ip string) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func IpFormat ¶ func IpFormat(ip string) string IpFormat formats the IP correctly, so we don't provide IPv6 address in an IPv4 format during node communication. We return the ip parameter as is if it's an IPv4 address or a hostname. Types ¶ This section is empty. Source Files ¶ View all Source files shared.go Click to show internal directories. Click to hide internal directories.