【Golang】runnerw.exe: CreateProcess failed with error 216 (no message available)への対処【Goland】

結論

packageの名前をmainに改名して下さい。

状況

Golandでrunnerw.exe: CreateProcess failed with error 216 (no message available)と出て下記のコードが実行できませんでした。

package IOTemplate_Go

import "fmt"

func main() {
	var str string
	fmt.Scan(&str)
	fmt.Println(str)
}

解決法

packageの名前をmainに改名しました。

package main

参考にしたページ

blog.csdn.net