Built-in types 6
Zero value concept 6
Declare and initialize 7
Conversion vs casting 8
Declare and initialize 8
Name type vs anonymous type 10
Everything is about pass by value 11
Pass by value 11
Declare and initialize 17
iota 19
CPU Cache 20
Translation Lookaside Buffer 21
Declare and initialize 21
What is the cost? 22
Iterate over the array of strings 23
Different type arrays 24
Contiguous memory allocations 24
Declare and initialize 25
Length vs Capacity 25
Reference type 26
Idea of appending: making slice a dynamic data structure 27
Slice of slice 30
Copy a slice 31
Slice and reference 32
UTF-8 33
Declare and initialize 35
Map literals 35
Delete key 36
Find key 36
Map key restrictions 36
Value and Pointer Receiver Call 37
Value and Pointer Semantics 39
Methods are just functions 43
Valueless type 46
Interface via pointer receiver 50
Slice of interface 53
Declaring fields, NOT Embedding 55
Embedding types 56
Embedded type and Interface 57
Outer and inner type implementing the same interface 58
Guideline 60
Exported identifier 60
Accessing a value of an unexported identifier 61
Unexported fields from an exported struct 62
Exported types with embedded unexported types 63
Grouping By State 65
Grouping By Behavior 67
Struct Composition 70
Decoupling With Interface 74
Interface Composition 79
Decoupling With Interface Composition 84
Interface Conversions 89
Type assertion 91
Runtime Type Assertion 92
Remove Interface Pollution 96
Package To Mock 98
Client 100
Sequence 123
Goroutine time slicing 124
Goroutines and parallelism 126
Race Detection 128
Atomic Functions 131
Mutexes 133
Read/Write Mutex 135
Language Mechanics 139
Unbuffered channel: Signaling with data 141
Unbuffered channel: Double signal 143
Unbuffered channel: select and receive 144
Unbuffered channel: select and send 145
Buffered channel: Select and drop 146
Unbuffered channel (Tennis match) 148
Unbuffered channel (Replay race) 150
Buffered channel: Fan Out 153
Select 157
Store and retrieve values from a context 164
WithCancel 166
WithDeadline 168
WithTimeout 169
Request/Response 171
Table Test 176
Sub Test 177
Web Server 181
Mock Server 187
Review Stack Trace 193
Packing 195
Memory Tracing 196