Skip to content

Make runtime.function(pc) public?  #6039

@gopherbot

Description

@gopherbot

by rocky.bernstein:

Given that runtime.Caller() and runtime.Callers() return a PC, shouldn't
debug.function() be public? 

runtime.FuncForPC() is already public. But apparently that's not good enough for
debug.Printstack() which indirectly calls debug.function().

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions