These pretty much says it.
- https://github.com/aws/aws-sdk-go/blob/master/aws/types.go#L23
- https://godoc.org/github.com/aws/aws-sdk-go/aws#LogLevelType
In short, starting with a sentence with Function name as first noun. Markdown might also be supported. (At least for hyperlinks, and)
// to `nil` or the value to `""` to use the default generated endpoint.
//
// Note: You must still provide a `Region` value when specifying an
Nothing near the level of JSDoc, JavaDoc, or several of Python docstring conventions, though; where Arguments
and Returns
, as well as Errors
, are documented. Also, syntax highlighting for JSDoc/JavaDoc are far superior (with @annotation
).
Top comments (2)
I refer to this
Thanks for official guide, but of course, I did come from other languages first (like Python, JavaScript, Java).
I am also looking for Doctest (originally in Python, and may be adaptable in some other languages.) - reddit.com/r/golang/comments/bafug...
For references,
Python "Google style" docstring.
JavaScript JSDoc / TypeScript TSDoc (which is almost similar to JavaDoc).
Again, I am looking to write Documentations that don't lose any information I wanted, not really that "Just following recommendations".
Let me complain this again...
How can I learn to like Golang? (and use it a lot)
Pacharapol Withayasakpunt ・ May 30 ・ 1 min read