defer

From wikieduonline
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: