Skip to content

Instantly share code, notes, and snippets.

View BrianLian's full-sized avatar

BrianLian BrianLian

View GitHub Profile
@kotakanbe
kotakanbe / ipcalc.go
Created September 17, 2015 02:59
get all IP address from CIDR in golang
package main
import (
"net"
"os/exec"
"github.com/k0kubun/pp"
)
func Hosts(cidr string) ([]string, error) {