finds.dev

draveness/go-internal

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

View on GitHubHomepage ↗

★ 279Goupdated Apr 2020

// the take

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.

We read the README, the directory tree and a key source file in September 2026. Nobody pays to be listed. How we judge →

search the same ground:

// at a glance

Stars
279
Forks
34
Language
Go
Last commit
18 Apr 2020

// nearby

If go-internal isn't quite it.

All repos →