Use os.Create instead of os.OpenFile,

which includes the os.O_CREATE bit so it will create the file if it doesn't already exist.