mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
5a4d431dd1
commit
3355cadf3f
7 changed files with 189 additions and 34 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue