code: func ValidateCIDR(cidr string) (*net.IPNet, error) {
  	_, net, err := net.ParseCIDR(cidr)
  	if err != nil {
  		return nil, err
  	}
  	return net, nil
  }
docs: // ValidateCIDR validates whether a CIDR matches the conventions expected by net.ParseCIDR