Simple CheatSheet
    • PythonPython
    • DatabaseDatabase
    • Operating SystemOperating System
    • ProgrammingProgramming
    • Linux CommandLinux Command
    • ToolkitToolkit
    • OtherOther
    • Keyboard ShortcutsKeyboard Shortcuts
Dart
Dart
HTML Canvas
HTML Canvas
Redis
Redis
Bash
Bash
JavaScript
JavaScript
Go
Go Error control

Defer

func main() {
  defer fmt.Println("Done")
  fmt.Println("Working...")
}

See: Defer, panic and recover

Comments
Related
  • Also see
  • Miscellaneous
  • Go Interfaces
  • Go Methods
  • Go Error control
  • Go Concurrency
  • Go Packages
  • Go Functions
  • Go Structs & Maps
  • Go Flow control
  • Go Strings
  • Go Basic types
  • Getting Started