4 ms·
> Having to call into ffi to work with files on a major operating system is not normal. You don’t. Normal operation like reading writing modifying and creating
by jpc0 1y ago
> Having to call into ffi to work with files on a major operating system is not normal.
You don’t. Normal operation like reading writing modifying and creating works just fine in windows.
The only thing that doesn’t is explicitly permissions where windows is the outlier and uses (imho a better) method of managing permissions. However they are the outlier and it is an uncommon operation. Why would the stdlib cater for that?
If you need to alter permissions at a more granular level on windows than is possible using golangs interface then call into the ffi, but in general you don’t need to to that.
If that is your only criticism then I agree we will not agree on this point, it is however also trivial to make ffi calls using go