Skip to content

Instantly share code, notes, and snippets.

@AndrewVos
Created February 25, 2014 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewVos/9208955 to your computer and use it in GitHub Desktop.
Save AndrewVos/9208955 to your computer and use it in GitHub Desktop.
func pathExists(path string) bool {
_, err := os.Stat(path)
if err == nil {
return true
}
return false
}
@AlexsJones
Copy link

nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment