Parodia
  • Communities
  • Multi-communities
  • Support Lemmy
  • Search
  • Login
  • Sign Up
Golang@programming.devbysanitation@lemmy.today
7 days

Understanding the Go Runtime: The Reflect Package

internals-for-interns.com
0
    The Reflect Package | Internals for Interns
    internals-for-interns.com
    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:
    You must log in or register to comment.

    Golang@programming.dev

    golang@programming.dev

    Subscribe from remote instance

    Create post

    Report community

    Modlog
    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

    This community is visible to everyone.

    • 5 users / Day
    • 5 users / Week
    • 5 users / Month
    • 5 users / 6 months
    • 10 posts
    • 0 comments
    • 1 local subscriber
    • 2.7K subscribers
    • BE: 1.0.0-beta.0
    • Modlog
    • Legal
    • Instances
    • Docs
    • Code
    • join-lemmy.org