Migration Playbook
Do not start migration by replacing syntax line-by-line. Start by checking whether the code shape fits Go-first semantics.
Good first targets
- business logic
- data processing
- CLI and backend workflows
- code that already feels synchronous or explicit
Harder targets
- heavy
Promise/asyncflows - browser API-heavy code
- code built around dynamic JS object behavior
Suggested order
- adjust data models and error flow
- choose
slice<T>vsArray<T> - redesign async workflows into goroutines/channels or synchronous Go-style APIs
- convert tests to
testing.T/testing.B - rerun
targo init,targo check, andtargo buildat each boundary