-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
crypto/keys: improve documentation #5833
Conversation
5088e50
to
605a6c0
Compare
crypto/keys/doc.go
Outdated
@@ -0,0 +1,47 @@ | |||
/* |
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.
package comment should not have leading space (from golint
)
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 you viewed the rendered godoc locally for this? This shouldn't be indented like this.
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's the same as https://golang.org/src/fmt/doc.go
Codecov Report
@@ Coverage Diff @@
## master #5833 +/- ##
==========================================
+ Coverage 32.3% 32.33% +0.02%
==========================================
Files 353 353
Lines 39461 39475 +14
==========================================
+ Hits 12749 12763 +14
Misses 25439 25439
Partials 1273 1273
|
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.
Minor formatting nits, other LGTM.
crypto/keys/doc.go
Outdated
@@ -0,0 +1,47 @@ | |||
/* |
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 you viewed the rendered godoc locally for this? This shouldn't be indented like this.
crypto/keys/doc.go
Outdated
as well as operating system-agnostic encrypted file-based backends. | ||
|
||
The backends: | ||
os The instance returned by this constructor uses the operating system's default |
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.
Formatting seems off here.
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.
Tested with go doc
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.
Right, but it seems off. The os
doesn't line up with the other entries.
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.
Oh I see why. I used tabs for formatting (same as https://golang.org/src/fmt/doc.go). Rendered result seems correctly aligned though (see below)
This is how
|
Remove out of date crypto/keys README.md file. Populate client keys commands help screen with more information regarding keyring backends.
19ad483
to
2e4d42d
Compare
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.
ACK -- pending CI lint fix 🍊
This doc comment was written when the package was previously called keys: cosmos#5833
Replace out of date crypto/keys README.md file
with crypto/keys package documentation.
Populate client keys commands help screen with
more information regarding keyring backends.
Forked from: #5822
For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)