github.com/puellanivis/breton@v0.2.16/lib/files/fileresolve_windows.go (about) 1 package files 2 3 import ( 4 "os" 5 "strconv" 6 ) 7 8 func resolveFileHandle(num string) (uintptr, error) { 9 fd, err := strconv.ParseInt(num, 0, 32) 10 if err != nil { 11 return uintptr(^fd), os.ErrInvalid 12 } 13 14 return uintptr(fd), nil 15 }