Comments

Python

  1. """This is a doc string for the whole module"""
  2.  
  3. # This is a inline comment
  4.  
  5.  
  6. class Class(object):
  7. """This is the doc string for the class"""
  8.  
  9.  
  10. print __doc__
  11. print Class.__doc__

Go

  1. package main
  2.  
  3. // This is a general comment
  4.  
  5. /* This is also a comment
  6. but on multiple lines.
  7. */
  8.  
  9. /* This is the multi-line comment for the function main().
  10. To get access to this from the command line, run:
  11.  
  12. godoc comments.go
  13.  
  14. */
  15.  
  16. func main() {
  17. }