github.com/zxy12/go_duplicate_112_new@v0.0.0-20200807091221-747231827200/src/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 }