
APIs
Stream JSON in Go With the Encoder and Decoder Types
Stream JSON in Go without loading it all: an iterator over a top-level array, NDJSON with a Decoder, element-by-element encoding and a live heap of 0.02 MB.
11 min read
Parsing, transforming and streaming text, CSV, JSON, logs and binary files, and pushing a lot of it through a small amount of memory.

Stream JSON in Go without loading it all: an iterator over a top-level array, NDJSON with a Decoder, element-by-element encoding and a live heap of 0.02 MB.

Render Markdown in Go with goldmark safely: what defaults block, what WithUnsafe lets through, and how to sanitize output with bluemonday for user content.

Build a blog engine in Go that embeds Markdown files, parses front matter, hides drafts and scheduled posts and serves index, tag and post pages.
We send one email when a new article is published. No spam.