Hello World in Go
Write your first Go program that prints Hello, World to the terminal, then compare your solution with a complete, tested example.
- fmt
- package main
Practise with solved Go exercises, from beginner to advanced, each with a statement, hints and a detailed solution.
Write your first Go program that prints Hello, World to the terminal, then compare your solution with a complete, tested example.
Read an integer and print whether it is even or odd using the modulo operator, then check your logic against a complete tested Go solution.
Print the numbers 1 to 100, replacing multiples of 3 with Fizz, of 5 with Buzz and of both with FizzBuzz, with a complete tested Go solution.
Print the full multiplication table of a number from 1 to 10 with a for loop, then compare your code with a complete tested Go solution.
Build a small integer calculator that returns a result or an error for each operation, then compare it with a complete tested Go solution.
Count how many times each word appears in a text using strings and a map, then compare your program with a complete tested Go solution.