diff --git a/src/path/example_test.go b/src/path/example_test.go index d962e3d331..315401957a 100644 --- a/src/path/example_test.go +++ b/src/path/example_test.go @@ -91,6 +91,16 @@ func ExampleJoin() { // a } +func ExampleMatch() { + fmt.Println(path.Match("abc", "abc")) + fmt.Println(path.Match("a*", "abc")) + fmt.Println(path.Match("a*/b", "a/c/b")) + // Output: + // true + // true + // false +} + func ExampleSplit() { fmt.Println(path.Split("static/myfile.css")) fmt.Println(path.Split("myfile.css"))