This repository is designed for anyone who is interested in learning GoLang. I have structured this repository to cover the basics of GoLang. It contains Go programs starting from basics to advanced, including topics like variables, control structures, functions, arrays and slices, pointers, structures, methods, and interfaces. The repository also includes solutions for problems from Leetcode and Exercism Go Track.
To get started with this repository, you will need to have Go installed on your computer.
- You can download and install Go from the official website https://golang.org/dl/.
- Run the installer and follow the instructions.
- Verify that Go is installed correctly by opening a terminal window and running the command
go version
. This should print the installed Go version.
Official Go repo: https://github.com/golang/go
You can also try the code directly at Go Playground without installing it.
This repository contains the following topics:
Go Introduction
Hello World
Variable Declaration
Printing Variables
Comments
Data Types
Escape Sequences
Variable Scope
Type of variable
Typecasting
Constants
Operators
Control Flow
Arrays
Slices
Maps
Functions
Pointers
Structs
Methods
Interfaces
Exercism Go Track
Each topic has its own folder containing a README.md file with an explanation of the topic and some examples. You can follow along with the examples and try them out for yourself.
The Exercism folder contains solutions to some Exercism problems in Go. Each problem has its own folder containing a README.md file with the problem description and solution.
Exercism Official Repo: https://github.com/exercism/go
If you find an error in the code or documentation, or if you have a suggestion for a new topic, please feel free to open an issue or submit a pull request. Contributions are welcome and appreciated.
This repository is licensed under the MIT license. See the LICENSE file for details.