IPv4Mask in Go

Posted by GoDoc
Public (Editable by Users)

IPv4Mask returns the IP mask (in 4-byte form) of the IPv4 mask a.b.c.d.

Go
Edit
package main

import (
	"fmt"
	"net"
)

func main() {
	fmt.Println(net.IPv4Mask(255, 255, 255, 0))
}