github.com/megatontech/mynoteforgo@v0.0.0-20200507084910-5d0c6ea6e890/源码/path/filepath/symlink_unix.go (about) 1 // +build !windows 2 3 package filepath 4 5 import ( 6 "syscall" 7 ) 8 9 // walkSymlinks returns slashAfterFilePathError error for paths like 10 // //path/to/existing_file/ and /path/to/existing_file/. and /path/to/existing_file/.. 11 12 var slashAfterFilePathError = syscall.ENOTDIR 13 14 func evalSymlinks(path string) (string, error) { 15 return walkSymlinks(path) 16 }