Skip to content

Instantly share code, notes, and snippets.

@oozzal
Created June 19, 2014 09:24
Show Gist options
  • Save oozzal/c2c3b0dd6c1d194cd1ab to your computer and use it in GitHub Desktop.
Save oozzal/c2c3b0dd6c1d194cd1ab to your computer and use it in GitHub Desktop.
package main
import "io/ioutil"
func main() {
f, err := ioutil.ReadFile("go_file.txt")
if err != nil { panic(err) }
println(string(f))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment