coderblog
package main

import (
"fmt"
"os"
)

func main() {

//当使用`os.Exit`的时候defer操作不会被运行 所以这里的``fmt.Println`将不会被调用
defer fmt.Println("!")

os.Exit(3)
}

分类:

技术点:

相关文章:

  • 2021-10-18
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2021-10-16
  • 2021-11-19
  • 2022-01-03
  • 2021-12-26
猜你喜欢
  • 2022-01-16
  • 2021-11-09
  • 2021-11-20
  • 2022-12-23
  • 2021-12-07
  • 2021-12-14
  • 2021-05-28
相关资源
相似解决方案