defer func()

      Go language logo
      defer statement

      Go Code Snippets

      {

      defer bar() {

      }

      }

      The code below defines a function that defers two functions. func() will call bar() after it has completed, and the bar() will call func() after it has completed.

      Shortcut: df

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.