Golang Basic 8 – Pointer Pointer A pointer holds the memory address of a value. Declear Pointers in Golang are very similar to pointers in […]
Tag: Golang
Golang Basic 7 – Function
Golang Basic 7 – Function Function Function Declear A function can take zero or more arguments. Notice that the type comes after the variable name. […]
Golang Basic 4 – Basic Operators
Golang Basic 4 – Basic Operators Arithmetic Operators Operators Operator Sense Description Sample Result Addition The ‘ ’ operator adds two operands. 3 2 5 […]
Golang Basic 6 – Basic for loop
Golang Basic 6 – Basic for loop for loop Go has only one looping construct, the for loop. The basic for loop has three components […]
Golang Basic 5 – If statement
Golang Basic 5 – If statement if if statement if boolVal{ // if boolVal is true, run this code block. } Sample root@go:l5/ # cat […]
Golang Basic 3 – Basic I-O functions
Golang Basic 3 – Basic I/O functions About fmt package Package fmt implements formatted I/O with functions analogous to C’s printf and scanf. The format […]
Golang Basic 2 – Basic Data Types && Variable
Golang Basic 2 – Basic Data Types && Variable Basic Data Types int, eg. 0, 1, 2, 3. float32, float64, eg. 3.14159. string, eg. “Hello […]
Golang Basic 1 – Install && Hello World
Golang Basic 1 – Install && Hello World What is Golang Official website: https://golang.org/ Go is an open source programming language that makes it easy […]