This is an old revision of the document!
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
- Concurrency
- Compiled
- Static linking
- Linux based IDEs?
- Debuggers?
- Code analyzers?
Introduction
Introduction and Installation
Hello World
Variables, Types and Constants
Variables
Types
Constants
const i = 42
- Value assigned to
constmust be known at compile time; cannot require any function execution. - Untyped constants have a default type associated with them and they supply it if and only if a line of code demands it. You can always created a typed constant if you want:
const typedhello string = "Hello World"
Functions and Packages
Functions
- return type follows parameter list