golangprojectstructure.com
How to Check Whether a File Exists or Not With Go | Golang Project Structure
Despite the seeming inadequacy of Go's standard library, it is very easy to check if a file exists or not by using the os.Stat function.