1
0
Fork 0
hacks/path/path_test.go

14 lines
207 B
Go
Raw Normal View History

2024-03-18 12:23:10 +00:00
package path_test
import (
"fmt"
"source.toby3d.me/toby3d/hacks/path"
)
func ExampleShift() {
2024-03-18 12:23:10 +00:00
head, tail := path.Shift("/foo/bar/index.html")
fmt.Println(head, tail)
// Output: foo /bar/index.html
}