Search across all documentation pages
10 pages in this section.
Compare Go reflection and code generation to write generic code. Understand trade-offs, key concepts, and when to use each approach.
Learn Go reflection basics with 10 examples. Understand reflect.Type and reflect.Value, iterate struct fields, and inspect runtime data.
Learn to parse Go struct tags like json, db, and validate using reflection. Build custom tag parsers and understand when to use them.
Learn to use go generate with stringer to automatically create String() methods for int-based enums, ensuring stable string names.
Learn best practices for Go reflection and code generation, including when to use each, optimizing performance, and managing struct tags effectively.
A single-page roundup of every highlight bullet from the 9 pages in the Reflection & Codegen section, grouped by source page so you can scan all 46 takeaways without opening each article individually.