finds.dev← search

// the find

draveness/go-internal

★ 279 · Go · updated Apr 2020

《Go 语言设计与实现》示例代码

This is the companion code repo for the Chinese book 《Go语言设计与实现》(Go Language: Design and Implementation), organized by chapter into small standalone snippets covering slice/map internals, SSA, codegen, and plugins. It's for readers of that specific book who want runnable examples to go with the text, not a general-purpose Go audience.

The snippets target real interpreter/runtime internals (slice growth in op_slice_make.go, map assignment mechanics, SSA generation, plugin loading) rather than surface-level syntax demos. Chapter-based folder structure maps directly to the book's table of contents, so it's easy to jump to the exact example being discussed. Files are small and self-contained, good for stepping through in a debugger.

The README is a single line with no explanation of what any of this is or how to run it — without the book in hand, this is just a folder of disconnected .go files. No go.mod, no tests, no way to verify the examples still compile. Last pushed in April 2020, so runtime internals like map/slice implementation details have likely drifted from current Go versions. No license file, which matters if anyone wants to reuse the code rather than just read it.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →