defer

From wikieduonline
Revision as of 15:57, 21 August 2022 by Cry (talk | contribs) (→‎Example)
Jump to navigation Jump to search

Example

package main
import "fmt"

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

	fmt.Println("hello")
}

See also

Advertising: