Welcome to the "Getting Started with Go" repository! 👋
This repository is a collection of beginner-friendly tutorials aimed at helping you learn and get started with the Go programming language.
Go, also known as Golang, is a statically typed, compiled language designed for simplicity and efficiency.
It has gained popularity for its clean syntax, strong standard library, and excellent performance.
Whether you're a complete beginner or an experienced programmer looking to learn Go, this repository is a great place to start.
This repository contains multiple Go projects, so workspaces will be used to handle them more easily.
You can create a workspace by running the following command at the root of the repository:
go work init .This will create a go.work file in which to include existing modules, as shown below:
go 1.21.2
use (
./hello-world
)You can then execute a module with the following command:
go run ./hello-worldNote: this tutorials are obtained from the official website
Here's a list of tutorials available in this repository to help you kickstart your journey with Go:
-
Hello, World! -- A simple tutorial to get your first Go program up and running.
-
Import external packages -- A tutorial to import public shared packages to use them into your code.
-
Modules -- A tutorial introducing functions, error handling, arrays, maps, unit testing and compiling.
Feel free to explore these tutorials in any order that suits your learning style.
Each tutorial comes with step-by-step instructions and sample code to help you understand Go concepts better.
We welcome contributions to this repository! If you have a new feature, a bug fix or any improvements to existing code, please follow our contribution guidelines
We appreciate your help in making this resource more valuable for others! 🙂
This repository is licensed under the MIT License.
Feel free to use, modify and distribute the content as long as you adhere to the terms of the license.