📝 Added path example
This commit is contained in:
parent
156bf5fef1
commit
c867d3a695
|
@ -0,0 +1,13 @@
|
||||||
|
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
|
||||||
|
}
|
Loading…
Reference in New Issue