typeover
curriculum

Curriculum Foundations

module 1 of 7

Foundations

The "you already know this, just spelled differently" module. By the end, you trust that typeover's translation pattern works, and writing trivial Go feels familiar.


themes

TypeScript uses let and const to introduce variables; the type is inferred or annotated explicitly. Go has two short forms for the same job: - name := value — the **short de…

10 ready begin →

TypeScript has one number type. Go has many: int, int8, int16, int32, int64, uint* mirrors, float32, and float64. The big idea: **Go has no implicit numeric conve…

9 ready begin →

Go strings are immutable byte sequences. There are no template literals — fmt.Sprintf does the job. A byte is an alias for uint8; a rune is int32 and represents a Unicode…

10 ready begin →

if/else looks familiar — no parentheses, braces required. The one new shape is the short-statement-if: if err := work(); err != nil { ... }. It scopes a temporary to the…

10 ready begin →

Go has one loop keyword: for. Three shapes: - for i := 0; i < n; i++ { ... } — classic. - for cond { ... } — while-style. - for { ... } — infinite, exit via break or `ret…

9 ready begin →

Functions look familiar — func name(args) returnType { ... } — with one big new idea: multiple return values. Go functions can return a tuple, and the convention for "this mi…

10 ready begin →