code: func IsTrustedIP(ipStr string) bool {
  	ip := net.ParseIP(ipStr)
  
  	for _, net := range subnets {
  		if net.Contains(ip) {
  			return true
  		}
  	}
  	return false
  }
docs: // IsTrustedIP returns true if the provided IP address came from
  // a trusted Nexmo server.