2021-10-31 【Go】関数を返す関数 関数を返す関数 func ReturnFunc() func() { return func() { fmt.Println('function') } } func main() { f:= ReturnFunc() f() }