/go-fundamentals

Repository with fundamentals of the Go programming language.

Primary LanguageGoMIT LicenseMIT

Go

Go Fundamentals

💡 Repository's Idea

This repository was created while studying the Go programming language. It aims to provide a set of examples on how to use different concepts of the Go programming language.

🔍 Features

Examples on how to use Go's features, such as:

  • Packages;
  • Variables;
  • Data types;
  • Functions;
  • Operators;
  • Structs;
  • Pointers;
  • Arrays & slices;
  • Maps;
  • If/Else flow control;
  • Switch;
  • Loops;
  • Methods;
  • Interfaces;
  • Concurrency and concurrency patterns;
  • Testing;
  • JSON;
  • HTTP;
  • HTML/CSS/JS;
  • Databases;
  • Basic CRUD;
  • Common algorithms implementation (quicksort, bubble sort, etc.);

🛠 Technologies

During the development of this project, the following technologies were used:

💻 Configuration

First, you must install Go on your computer.

⏯️ Running

Here's a set of useful commands when using Go:

$ go help # Show the different available commands
$ go run [fileName.go] # Running Go files
$ go mod init [moduleName] # Creating new modules (similar to JavaScript "package.json" files)
$ go build # Creating executable files
$ go install # Creating executable files and saving in the directory where Go is installed
$ go get [packageUrl] # Installs external packages, for example: "go get github.com/badoux/checkmail"
$ go mod tidy # Remove unused packages from the "go.mod" file
$ go test # Run the test codes ("filename_test.go") from the directory where the command was executed

Documentation:

📄 License

This repository is under the MIT license. For more information, access LICENSE.