6 lines
116 B
Go
6 lines
116 B
Go
package pathext
|
|
|
|
func IsRoot(path string) bool {
|
|
return path == "" || path == "." || path == "/" || path == "./"
|
|
}
|