Starting a collection of common programming tasks expressed in Go. Read a file as a string Imports: bytes, io/ioutil data, err := ioutil.ReadFile("path/to/file") buf := bytes.NewBuffer(data) str := buf.String()