ipcalc_go a go script for ip CIDR ,also give you mask and network sky@sky-MacBookPro tmp$ go build ipcalc.go sky@sky-MacBookPro tmp$ ./ipcalc 172.16.10.33/27 =========output=========== ip:172.16.10.33 mask: 255.255.255.224 network: 172.16.10.32