...

/

Functions and Files

Functions and Files

This lesson flashes back to the standard operations and their syntaxes defined on functions and files.

📝 Useful code snippets for functions

Recovering to stop a panic terminating sequence:

func protect(g func()) {
  defer func() {
    log.Println("done") // Println executes normally
...