-
Notifications
You must be signed in to change notification settings - Fork 294
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
app.go: Take a pass over the godoc #1162
Conversation
The godocs for most of the public API in app.go hasn't been touched in a while. I took a quick pass over it to adjust it better to current recommendations and best practices. This also makes more use of Go's `[..]` linking. One notable change: Instead of Options, logical groups of options are now recomended via Module.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1162 +/- ##
=======================================
Coverage 98.79% 98.79%
=======================================
Files 30 30
Lines 3061 3061
=======================================
Hits 3024 3024
Misses 30 30
Partials 7 7 ☔ View full report in Codecov by Sentry. |
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.
Have a couple suggestions, but thanks this looks great!
annotated.go
Outdated
@@ -109,8 +111,9 @@ var ( | |||
} | |||
) | |||
|
|||
// Annotation can be passed to Annotate(f interface{}, anns ...Annotation) | |||
// for annotating the parameter and result types of a function. | |||
// Annotation decorates a target for [Annotate]. |
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 overloads "decorate" a little bit. Consider a different word choice, or just merging with the following sentence.
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.
Agree. "Wraps"
Co-authored-by: Jacob Oaks <jacoboaks.8@gmail.com>
The godocs for most of the public API in app.go hasn't been touched in a
while.
I took a quick pass over it to adjust it better to current
recommendations and best practices.
This also makes more use of Go's
[..]
linking.One notable change: Instead of Options, logical groups of options are
now recomended via Module.