IPv4 in Go

Posted by GoDoc
Public (Editable by Users)

IPv4 returns the IP address (in 16-byte form) of the IPv4 address a.b.c.d.

Go
Edit
package main

import (
	"fmt"
	"net"
)

func main() {
	fmt.Println(net.IPv4(8, 8, 8, 8))
}