We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go version
go version go1.9 linux/amd64
Tried to determine if a file is executable
info, _ := os.Stat(file) isExecutable := info.Mode()&os.ModeExecutable == 0
os.ModeExecutable to equal 0111
os.ModeExecutable
0111
os.ModeExecutable is not defined.
The text was updated successfully, but these errors were encountered:
Executable for who?
We also don't have ModeReadable and ModeWritable, so why just executable?
Sorry, something went wrong.
@bradfitz makes sense
No branches or pull requests
What version of Go are you using (
go version
)?go version go1.9 linux/amd64
What did you do?
Tried to determine if a file is executable
What did you expect to see?
os.ModeExecutable
to equal0111
What did you see instead?
os.ModeExecutable
is not defined.The text was updated successfully, but these errors were encountered: