Skip to content

Instantly share code, notes, and snippets.

@johnsonz
johnsonz / ipcalc.go
Created August 31, 2016 03:12 — forked from kotakanbe/ipcalc.go
get all IP address from CIDR in golang
package main
import (
"net"
"os/exec"
"github.com/k0kubun/pp"
)
func Hosts(cidr string) ([]string, error) {