Go

Go is currently my language I am spending the most time learning next to Rust and keeping up to date on my Python and Bash knowledge.

Go promotes composition over inheritance.

Commenting Go code

  • Comments documenting declarations should be full sentences.

  • Comments should begin with the name of the thing being described and end in a period.

Error checking

  • You can log.Fatal(err) when playing with code.

    • In actual applications you need to decide what you need to do with each error response - bail immediately, pass it to the caller, show it to the user, log it and continue, etc ...

Notes

Last updated