Curriculum Foundations
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.
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…
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…
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…
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…
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…