I have a case where I want to pass *nix file permissions as a command line option in standard octal format (e.g. 0600). Unfortunately it looks like the package is usingstrconv.ParseInt() to handle int options and it is not doing the correct thing.
When the octal is converted to an int, 384 is the expected result in this case.
I suppose this is really a Go issue and I should go submit a bug to them, but is this something you think could be fixed here in your package. I'd be happy to submit a PR to patch it, but I have to jump through corporate hoops to get approval first :roll_eyes: I'd rather not bother with that if it's something you wouldn't consider accepting.
I have a case where I want to pass *nix file permissions as a command line option in standard octal format (e.g.
0600
). Unfortunately it looks like the package is usingstrconv.ParseInt()
to handleint
options and it is not doing the correct thing.Here is a basic example:
Sample code:
Result:
When the octal is converted to an
int
, 384 is the expected result in this case.I suppose this is really a Go issue and I should go submit a bug to them, but is this something you think could be fixed here in your package. I'd be happy to submit a PR to patch it, but I have to jump through corporate hoops to get approval first :roll_eyes: I'd rather not bother with that if it's something you wouldn't consider accepting.