I'm learning a new language .. "go" - to check that I have the environment set up, here's the ubiquitous "Hello World" :-
1 2 3 4 5 6 7 | package main import "fmt" func main() { fmt.Printf("Hello, Garth.\n") } |
which produces the desired output :-
1 2 | Garths-MacBook-Pro:hello garthjl$ $GOPATH/bin/hello Hello, Garth. |
Well, it may be pretty boring, but it proves that the environment is set up correctly, it illustrates using hilite.me to format the go code AND the bash session output :-)
No comments:
Post a Comment