2024-03-18 12:23:10 +00:00
|
|
|
package path_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"source.toby3d.me/toby3d/hacks/path"
|
|
|
|
)
|
|
|
|
|
2024-03-19 11:22:09 +00:00
|
|
|
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
|
|
|
|
}
|