Skip to content

Instantly share code, notes, and snippets.

@vladimirvivien
Created September 13, 2017 17:04
Show Gist options
  • Save vladimirvivien/627d060b55ce567a267de29ff7fa20a5 to your computer and use it in GitHub Desktop.
Save vladimirvivien/627d060b55ce567a267de29ff7fa20a5 to your computer and use it in GitHub Desktop.
func main() {
file, err := os.Open("./proverbs.txt")
if err != nil {
fmt.Println(err)
os.Exit(1)
}
defer file.Close()
if _, err := io.Copy(os.Stdout, file); err != nil {
fmt.Println(err)
os.Exit(1)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment