func os.IsPathSeparator
16 uses
os (current package)
file.go#L773: if IsPathSeparator(dir[len(dir)-1]) {
path.go#L35: for i >= 0 && IsPathSeparator(path[i]) {
path.go#L38: for i >= 0 && !IsPathSeparator(path[i]) {
path.go#L82: if len(path) >= 2 && path[len(path)-1] == '.' && IsPathSeparator(path[len(path)-2]) {
path_unix.go#L15: func IsPathSeparator(c uint8) bool {
tempfile.go#L66: if IsPathSeparator(pattern[i]) {
tempfile.go#L120: if len(dir) > 0 && IsPathSeparator(dir[len(dir)-1]) {
path/filepath
match.go#L315: case vollen+1 == len(path) && os.IsPathSeparator(path[len(path)-1]): // /, \, C:\ and C:/
symlink.go#L20: if volLen < len(path) && os.IsPathSeparator(path[volLen]) {
symlink.go#L27: for start < len(path) && os.IsPathSeparator(path[start]) {
symlink.go#L31: for end < len(path) && !os.IsPathSeparator(path[end]) {
symlink.go#L55: if os.IsPathSeparator(dest[r]) {
symlink.go#L77: if len(dest) > filepathlite.VolumeNameLen(dest) && !os.IsPathSeparator(dest[len(dest)-1]) {
symlink.go#L120: if v < len(link) && os.IsPathSeparator(link[v]) {
symlink.go#L126: } else if len(link) > 0 && os.IsPathSeparator(link[0]) {
symlink.go#L137: if os.IsPathSeparator(dest[r]) {
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |