1
0
Fork 0

📝 Added path example

This commit is contained in:
Maxim Lebedev 2024-03-18 17:23:10 +05:00
parent 156bf5fef1
commit c867d3a695
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 13 additions and 0 deletions

13
path/path_test.go Normal file
View File

@ -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
}