defer

From wikieduonline
Revision as of 15:58, 21 August 2022 by Cry (talk | contribs) (→‎Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Example[edit]

package main
import "fmt"

func main() {
	defer fmt.Println("world")

	fmt.Println("hello")
}

See also[edit]

Advertising: