Skip to content

Instantly share code, notes, and snippets.

@ollien
Created August 18, 2019 03:07
Show Gist options
  • Save ollien/b7c59817ada613b360e15244f6e40d66 to your computer and use it in GitHub Desktop.
Save ollien/b7c59817ada613b360e15244f6e40d66 to your computer and use it in GitHub Desktop.
// removeExecuteBits will remove the execute bits from the given FileMode
func removeExecuteBits(mode os.FileMode) os.FileMode {
mask := ^os.FileMode(0111)
return mode & mask
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment