Code Examples: Hello World, CPU Usage %, GPU Usage %(github)
Command line Arguments: os.args, flag package
Collections
Arrays, Slices = vector<int>, Channels, Maps
Queue(using slice), Stack(using slice), struct(as class, struct tagging), Linked List
Features: Struct Embedding=Composition
Functions:
make(), Multiple Returns, Naked Return, Function as values, Closure = Lambda Function, range()
Garbage Collection
Install Go
Loops: for, while
Layout: Memory layout of Go Process
Packages and Module
What are Packages & Module?
Packages: Context, clientcmd, runtime, signal
Kubernetes Packages: client-go, controller-runtime, apimachinery-runtime
Pointers
Statements/Keywords: defer, if, switch
Threading: goroutines, channels
Types
Basic: int, float64, bool, string
Aggregate: Arrays, struct
Reference: Pointers, slices, maps, functions
Interface=Abstract Class C++(Interface Pollution Problem)
Variables
Web Server
Why Go Over Other Lang