Go's standard library does not have a function solely intended to check if a file exists or not (like Python's os.path.exists
). What is the idiomatic way to do it?
转载于:https://stackoverflow.com/questions/12518876/how-to-check-if-a-file-exists-in-go