go-tour/

directory
v0.0.0-...-bc679c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2022 License: MIT

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

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL