support []byte (more efficient) as well as string in the interfaces.

change the names; Match is for []byte and MatchString is for string, etc.

R=rsc
DELTA=195  (155 added, 0 deleted, 40 changed)
OCL=32800
CL=32800
This commit is contained in:
Rob Pike 2009-08-05 15:44:45 -07:00
parent 5a4d431dd1
commit 3355cadf3f
7 changed files with 189 additions and 34 deletions

View file

@ -128,7 +128,7 @@ func Main(tests []Test) {
os.Exit(1);
}
for i := 0; i < len(tests); i++ {
if !re.Match(tests[i].Name) {
if !re.MatchString(tests[i].Name) {
continue;
}
if *chatty {