-
Notifications
You must be signed in to change notification settings - Fork 305
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
Consolidate method/function names #44
Comments
I'd also like to suggest that we get rid of constructor functions like
|
@mdlayher You mean all package level shorthand methods? Even |
Good question. I suppose it depends how much some of them are used. While they may be convenient, I imagine that most applications will want to construct a |
Is this something that we still want to do? After the refactoring in #149, we still have a lot of method names that look like |
I think the idiomatic way would be to call it BuddyInfo() and rename the struct instead.. |
See the linked PRs. I think |
I still agree with my previous comment: #44 (comment) I'd like to see very few package level functions, and everything is only accessible via a method on the FS type. |
I agree that it seems better to remove the top level constructor functions and just always require
|
Don't have a opinion on that, so if you think that's better - let's do it. |
This removes top level 'New<Thing>' constructor functions in order to make the API slightly smaller and more consistent. Fixes issue prometheus#44 Signed-off-by: Paul Gier <pgier@redhat.com>
This removes top level 'New<Thing>' constructor functions in order to make the API slightly smaller and more consistent. Fixes issue prometheus#44 Signed-off-by: Paul Gier <pgier@redhat.com>
This removes top level 'New<Thing>' constructor functions in order to make the API slightly smaller and more consistent. Fixes issue prometheus#44 Also includes some minor readme and godoc updates. Signed-off-by: Paul Gier <pgier@redhat.com>
This removes top level 'New<Thing>' constructor functions in order to make the API slightly smaller and more consistent. Fixes issue #44 Also includes some minor readme and godoc updates. Signed-off-by: Paul Gier <pgier@redhat.com>
Fixed in PR #162 |
This removes top level 'New<Thing>' constructor functions in order to make the API slightly smaller and more consistent. Fixes issue prometheus#44 Also includes some minor readme and godoc updates. Signed-off-by: Paul Gier <pgier@redhat.com>
The `ProcError` error type now gains a new `InternalError` variant which is designed to cover cases when the procfs library encounters something unexpected and would otherwise panic. Every instance of `InternalError` should be considered a bug that should be reported Closes prometheus#44
The current naming is not stringent nor idiomatic.
From @mdlayher
It might make sense to just use the procfs names wherever possible.
The text was updated successfully, but these errors were encountered: