Skip to content

Instantly share code, notes, and snippets.

@nleiva
Created July 11, 2018 17:46
Show Gist options
  • Save nleiva/4ecc9580e1f279bad0b23c81debfd5bb to your computer and use it in GitHub Desktop.
Save nleiva/4ecc9580e1f279bad0b23c81debfd5bb to your computer and use it in GitHub Desktop.
func main() {
ipn := &net.IPNet{
IP: net.IPv4(10,200,0,0),
Mask: net.CIDRMask(24, 32),
}
gw := calcGatewayIP(ipn)
fmt.Printf("%v", gw )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment