The type of syscall.Stdin differs on Linux (int) and Windows (syscall.Handle). As such, any calling code needs to always cast syscall.Stdin to an integer to use it. But this gets flagged by unconvert on Linux.
My current workaround is to do int(os.Stdin.Fd()) instead of syscall.Stdin. Would be nice to do without the hack.
The type of
syscall.Stdindiffers on Linux (int) and Windows (syscall.Handle). As such, any calling code needs to always castsyscall.Stdinto an integer to use it. But this gets flagged byunconverton Linux.My current workaround is to do
int(os.Stdin.Fd())instead ofsyscall.Stdin. Would be nice to do without the hack.