The Laws of Reflection - The Go Programming Language
go.dev · 2,903 words · saved by 1 readers
How reflections works in Go, how to think about it, and how to use it.
The Laws of Reflection - The Go Programming Language The Go Blog The Laws of Reflection Rob Pike 6 September 2011 Introduction Reflection in computing is the ability of a program to examine its own structure, particularly through types; it's a form of metaprogramming. It's also a great source of confusion. In this article we attempt to clarify things by explaining how reflection works in Go. Each language's reflection model is different (and many languages don't support it at all), but this article is about Go, so for the rest of this article the word "reflection" should be taken to mean "refl
saved by
related reading
- Frequently Asked Questions (FAQ) - The Go Programming Languagego.dev
- Demystifying Function Parameters in Go- Alex Edwardsalexedwards.net
- Effective Go - The Go Programming Languagego.dev
- The Go Programming Language Specification - The Go Programming Languagego.dev
- Go Slices: usage and internals - The Go Programming Languagego.dev
- A half-hour to learn Rustfasterthanli.me
- Pointers & errors | Learn Go with testsquii.gitbook.io
- The Go Memory Model - The Go Programming Languagego.dev
- Notes on structured concurrency, or: Go statement considered harmful - njs blogvorpus.org
- Constants - The Go Programming Languagego.dev
- Go at Google: Language Design in the Service of Software Engineering - The Go Programming Languagego.dev
- Golang Type Assertion Explained with Examplesgolinuxcloud.com