LemmyChan
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
sanitation@lemmy.today to Golang@programming.dev · 1 month ago

Understanding the Go Runtime: The Reflect Package

internals-for-interns.com

external-link
message-square
0
link
fedilink
4
external-link

Understanding the Go Runtime: The Reflect Package

internals-for-interns.com

sanitation@lemmy.today to Golang@programming.dev · 1 month ago
message-square
0
link
fedilink
The Reflect Package | Internals for Interns
internals-for-interns.com
external-link
In the previous article we watched the runtime rebuild an entire stack trace out of metadata the compiler and linker had frozen into the binary at build time. I told you at the end that reflect works on exactly the same trick — metadata baked into the binary, only pointed at your data instead of your call stack. Today we’re going to cash that promise in. Let’s start with a program that, the first time you see it, feels like it shouldn’t be possible:
alert-triangle
You must log in or # to comment.

Golang@programming.dev

golang@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !golang@programming.dev

This is a community dedicated to the go programming language.

Useful Links:

  • Go Website
  • Effective Go
  • Go by Example
  • How to Start a Go Project

Rules:

  • Posts must be relevant to Go
  • No NSFW content
  • No hate speech, bigotry, etc
  • Try to keep discussions on topic
  • No spam of tools/companies/advertisements
  • It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2 users / day
  • 14 users / week
  • 22 users / month
  • 123 users / 6 months
  • 2 local subscribers
  • 2.71K subscribers
  • 76 Posts
  • 15 Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • RandomDevOpsDude@programming.dev
  • austin@programming.dev
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org