Answers for "how to read from a file in golang"

Go
3

golang read file

dat, err := ioutil.ReadFile("/tmp/dat")
    check(err)
    fmt.Print(string(dat))
Posted by: Guest on November-02-2020

Code answers related to "how to read from a file in golang"

Browse Popular Code Answers by Language