-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proposal: runtime: add GetEntryInfo
function
#68583
Comments
Related Issues and Documentation (Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
I feel like |
@tdakkota if invoke |
this describes the desired change, but not why this information should be exposed, what it would be used for, and how common a need for this is |
@seankhliao One of the methods in our base library can read the specified configuration file in the root directory of the module where the entry file is located. The profile is not embedded into the binary. And test mod should be supoorted, so we need to know where the entry file is located at. |
@timandy you’ve described what you are doing but you haven’t explained why. could you explain what problem you are trying to solve? |
I don't understand how getting the path of the source file that contains |
@ianlancetaylor Although many packages may contain the the |
|
@seankhliao As you said that |
Proposal Details
Some time we want to get the entry info like module name. entry file path, dpendent modules and so on.
before go1.23 these infos can be get from runtime.firstmoduledata, but after go1.23 runtime.firstmoduledata can not be access.
before go1.23
The text was updated successfully, but these errors were encountered: