directory
Version:
v0.0.0-...-bc679c1
Opens a new window with list of versions in this module.
Published: Oct 6, 2022
License: MIT
Opens a new window with license information.
README
¶
Go Tour guide
Install
macOS:
brew install go
Compile and run
Inside of the directory where the main package is located type and run
go run .
Or if not a go module(doesn't contain go.mod
)
go run <filename>.go
How to setup a module
Steps:
- To create the module:
go mod init <name>
- Add dependency
go get <url>
- Install dependency
go install <url>
- Synchronize code dependencies
go mod tidy
More info on the link
Packages, variables, and functions
Link to first program
Flow control statements: for, if, else, switch and defer
Link to control flow
More types: structs, slices, and maps
Link to control flow
Methods and interfaces
Link to methods and interfaces
Generics
Link to generics
Concurrency
Link to concurrency
Directories
¶
Click to show internal directories.
Click to hide internal directories.