Overview
Notes on Golangbot Golang tutorial series.
The primary focus of Golang is to make the development of highly available and scalable web apps simple and easy.
Misc
- “_” is the “blank identifier”
- Concurrency
- Compiled
- Static linking
- Linux based IDEs?
- Debuggers?
- Code analyzers?
- Install Visual Studio (https://code.visualstudio.com/docs/setup/linux)
Introduction
Introduction and Installation
Advantages of Go:
- Simple syntax(?)
- Fast compilation
- Static linking
- Concurrency (goroutines and channels)
- Garbage collection
- Simple language specification
- Tooling
/usr/bin/gofmt
(golang-bin package)/usr/bin/golint
(golint package)go help vet
go help tool
Used as the basis for Docker and Kubernetes.
Third-party tooling, IDEs, etc.
Hello World
Variables, Types and Constants
Variables
Types
- Go is strict about explicit typing.
Constants
- Value must be known at compile time
- Not sure what it means that “const” things have a “default” type until used
- What does it mean that something is “untyped”?