IPv4 returns the IP address (in 16-byte form) of the IPv4 address a.b.c.d.
package main import ( "fmt" "net" ) func main() { fmt.Println(net.IPv4(8, 8, 8, 8)) }