Created
September 14, 2017 16:26
-
-
Save vladimirvivien/074ef5832d2e11970f5499b2a62cdaf7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"io/ioutil" | |
... | |
) | |
func main() { | |
bytes, err := ioutil.ReadFile("./planets.txt") | |
if err != nil { | |
fmt.Println(err) | |
os.Exit(1) | |
} | |
fmt.Printf("%s", bytes) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment