Welcome to my Go tutorial exercises repository! This repository contains the code I wrote while following the tutorial Create a Go Module.
The repository is organized into the following folders:
This folder contains the code for the "Hello, World!" exercise. It demonstrates the basic structure of a Go program and how to build and run it.
To build the program, navigate to the hello
folder and run the following command:
go build
To run the program, use the following command:
./hello
Feel free to modify the names in the hello.go file and see how it affects the program's output.
The greetings folder includes code for the "Greetings" exercise. It introduces the concept of packages, importing, and writing tests in Go.
To run the tests for the greetings package, navigate to the greetings folder and run the following command:
go test
Explore the code and tests to learn more about how the greetings package works.