2021-11-01 【Go】関数を引数にとる関数 関数を引数にとる関数 func CallFunction(f func()){ f() } func main() { CallFunction(func(){ fmt.Println('call function') )}