Show HN: Dwarfreflect – Extract Go function parameter names at runtime
https://github.com/matteo-grella/dwarfreflect
While working on openai-agents-go, I wanted users to define tools by passing in a plain Go function and have the agent figure out the inputs automatically.But I ran into a gap: Go's reflect gives you parameter types and positions, but not the actual names you wrote.So I built dwarfreflect: it parses the DWARF debug info embedded in Go binaries (unless stripped) to recover real function...