-
Notifications
You must be signed in to change notification settings - Fork 55
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
refactor: removes debug/macho and GetFile #103
Conversation
@TcM1911 Can you take a look at this patch? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It all looks good. The only thing I have a question about is the decision to remove a public method.
@@ -181,16 +184,16 @@ func (f *GoFile) initPackages() error { | |||
return f.initPackagesError | |||
} | |||
|
|||
// GetFile returns the raw file opened by the library. | |||
func (f *GoFile) GetFile() *os.File { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is removing an exported method which likely will break some stuff downstream. I know it's not a 1.0 version yet so breakage is not guaranteed but I like to avoid it as much as possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we didn't hold a *os.File
right now, there's no way to keep providing this API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/search?q=lang%3AGo+github.com%2Fgoretk%2Fgore&type=code
Additionally, I performed a search in GitHub and no repositories seem to be calling this API except for my project https://github.com/Zxilly/go-size-analyzer.
Closes: #101
Closes: #102