1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
7 /* Commented out until gccgo has example support.
15 fmt.Println(path.Base("/a/b"))
29 for _, p := range paths {
30 fmt.Printf("Clean(%q) = %q\n", p, path.Clean(p))
34 // Clean("a/c") = "a/c"
35 // Clean("a//c") = "a/c"
36 // Clean("a/c/.") = "a/c"
37 // Clean("a/c/b/..") = "a/c"
38 // Clean("/../a/c") = "/a/c"
39 // Clean("/../a/b/../././/c") = "/a/c"
43 fmt.Println(path.Dir("/a/b/c"))
48 fmt.Println(path.Ext("/a/b/c/bar.css"))
53 fmt.Println(path.IsAbs("/dev/null"))
58 fmt.Println(path.Join("a", "b", "c"))
63 fmt.Println(path.Split("static/myfile.css"))
64 // Output: static/ myfile.css