golang ioutil.ReadFile if not exists code example
Example: golang read file
dat, err := ioutil.ReadFile("/tmp/dat")
check(err)
fmt.Print(string(dat))
dat, err := ioutil.ReadFile("/tmp/dat")
check(err)
fmt.Print(string(dat))