Welcome Gophers, to the start of your learning journey!
What awaits before you is fame and fortune, as well as a lot of fun in general. Go is a fantastic language that is full of magic and wonder.
Your first quest, on this arduous journey, is to complete the most famous of all progams in any programming language. This is a true right of passage for all developers that transcends the boundaries of time and space.
We can import packages such as the
fmt package (pronounced format) package that expose helpful exported functions such as
Println which we can pass strings into as an argument.
- Import the
fmtpackage and then add a
Printlncall in the
- Once you have successfully printed out ‘Hello World’ in the
Running Go Locally
Should you wish to attempt this quest locally, you can do so by creating a
main.go file on your machine. You’ll also need to ensure that you have the
go compiler installed on your machine.
With these things in place, you can then open up the terminal and run:
$ go run main.go
Should you wish to undertake any of these quests locally, feel free to do so and mark the lessons as complete when you feel you are ready!