sai_dive IL

学んだことのアウトプットブログ

【Go】関数を引数にとる関数

関数を引数にとる関数

func CallFunction(f func()){
       f()
}

func main() {
       CallFunction(func(){
       fmt.Println('call function')
)}