Comments
Python
- """This is a doc string for the whole module"""
- # This is a inline comment
- class Class(object):
- """This is the doc string for the class"""
- print __doc__
- print Class.__doc__
Go
- package main
- // This is a general comment
- /* This is also a comment
- but on multiple lines.
- */
- /* This is the multi-line comment for the function main().
- To get access to this from the command line, run:
- godoc comments.go
- */
- func main() {
- }