 <pre><code>func ReadFile(filename string) ([]byte, error) </code></pre> <p>My answer was from another import called <a href="https://golang.org/pkg/io/ioutil/#ReadFile" rel="nofollow">"io/ioutil"</a>.</p> <p>This will return the file's contents in bytes and I was able to use the function string(file) to convert the bytes into text.</p>