package argvpb import "strings" func (pb *Argv) IsMatch(match string) bool { parts := strings.Split(match, ".") pb.Debugf("IsMatch() parts (%v)", parts) for _, part := range parts { var found bool for _, v := range pb.Real { if part == v { found = true } } if found { continue } return false } return true }