go101

module
v0.0.0-...-552f7d1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: MIT

README

Go 101

An attempt at demonstrating the basics of Go to people with prior programming experience.

Install Go

Packages for Linux, OSX and Windows can be downloaded at https://golang.ir/dl/

Running the demos

In the checked-out repository run

# go run ./cmd/run --help
Usage of ./run:
  --arrays            call the arrays demo
  --buffered          call the buffered demo
  --concurrency       call the concurrency demo
  --consts            call the consts demo
  --context           call the context demo
  --control           call the control demo
  --errors            call the errors demo
  --funcs             call the funcs demo
  --http              call the HTTP demo
  --interfaces        call the interfaces demo
  --json              call the json demo
  --loglevel string   set the logrus loglevel (default "info")
  --logrus            call the logrus demo
  --maps              call the maps demo
  --names             call the names demo
  --pointers          call the pointers demo
  --stdlog            call the standard log demo
  --time              call the Time demo
  --types             call the types demo
  --vars              call the vars demo
  --viper             call the viper demo

Jump to

Keyboard shortcuts

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