On the Web on joe blubaugh · Jan 16, 2023
Looking in Go's Mirror: How and When to use `reflect`
0Sign in to vote or save
This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.
This article was originally published on gopheradvent.com Go’s static typing is a headline feature of the language. It prevents whole classes of bugs, makes code easier to navigate and refactor, and makes it easier for linters to analyze. But there are times when it’s very constricting. What if we’re reading JSON files from disk with unknown structure? We can’t define a…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.