← Back to blog

Interfaces, iota, and Why json.Unmarshal Needs a Pointer

A method is just a function with a receiver, a nil interface panics differently than a nil pointer, and iota isn't a TypeScript enum — three Go idioms I had to unlearn my TS assumptions for.

Written by Denys Dovzhenko