Tier 1 — Go Basic

12 lesson về cú pháp Go cơ bản, kết thúc bằng mini-project CLI todo.

Tier này dạy gì?

Tier 1 dạy cú pháp Go từ hello world đến struct: biến, hàm, slice, map, string, struct, pointer. Sau Tier 1, bạn có thể đọc và viết được code Go cỡ ~200 dòng, hiểu mọi thứ trong fmt, strings, strconv. Lesson 17 là mini-project CLI todo — bài tổng kết cả tier.

Tiền đề: đã xong Tier 0 (đặc biệt L05 — đã chạy được hello world).

12 lesson trong Tier 1
Lesson 06
go run, go build, go mod, package, GOPATH vs module.
Lesson 07
var/:=/const, int/float/bool/string, zero value, ép kiểu.
Lesson 08
Số học, logic, bitwise, precedence, overflow, conversion.
Lesson 09
if, else if, switch (expression / type / fallthrough).
Lesson 10
3 dạng for, range, break/continue/label.
Lesson 11
Multiple return, named return, variadic, closure, defer.
Lesson 12
len/cap, append, slice tricks, share underlying array gotcha.
Lesson 13
Khởi tạo, comma-ok, delete, iteration không thứ tự.
Lesson 14
Byte vs rune, range string, unicode/utf8, strings.Builder.
Lesson 15
Struct, embedding, method receiver value vs pointer.
Lesson 16
&/*, nil pointer, escape analysis sơ lược, khi nào dùng pointer.
Lesson 17
Build app todo trên CLI dùng tất cả kiến thức Tier 1: slice, map, struct, file I/O.