This is a collection of Codes and examples for learning Go.
This Project will be updated regularly.
Note: This is a very basic Codes so it's for beginners.
Here is the Temporary
folder structure of the project :
├───my-basics
│ ├───arrays
│ ├───array-example.go
│ ├───datatypes
│ ├───datatypes-example.go
│ ├───variables
│ ├───variable-example.go
│ ├───go.mod
│ ├───main.go
│ ├───README.md
To install Go, follow the instructions at https://golang.org/doc/install.
To run a Go program, use the go run
command. For example, to run the main.go
program, use the following command:
go run main.go
To build a Go program, use the go build
command. For example, to build the main.go
program, use the following
command:
go build main.go