defer

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


Example

package main

import "fmt"

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

	fmt.Println("hello")
}

See also

Advertising: