1
0
Fork 0
hacks/path/path_test.go

14 lines
202 B
Go

package path_test
import (
"fmt"
"source.toby3d.me/toby3d/hacks/path"
)
func Example() {
head, tail := path.Shift("/foo/bar/index.html")
fmt.Println(head, tail)
// Output: foo /bar/index.html
}