exit

exit

原文:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
// Note:
// This code is from https://gobyexample.com.
package main

import (
	"fmt"
	"os"
)

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

	os.Exit(3)
}
最后修改 October 10, 2024: 更新 (a4b8f85)