code: func patternMatch(str string, patChars, patTypes []byte) bool {
  	return stringutil.DoMatch(str, patChars, patTypes)
  }
docs: // patternMatch matches "%" the same way as ".*" in regular expression, for example,
  // "10.0.%" would match "10.0.1" "10.0.1.118" ...