背景
Linux中的go项目,可以使用go run *.go运行当前文件夹下的所有go文件。
但是同样的代码在Windows中中运行时,提示错误:
CreateFile *.go: The filename, directory name, or volume label syntax is inc
方案
在Windows中使用命令[go run ./]等同于[go run *.go]
Linux中的go项目,可以使用go run *.go运行当前文件夹下的所有go文件。
但是同样的代码在Windows中中运行时,提示错误:
CreateFile *.go: The filename, directory name, or volume label syntax is inc
在Windows中使用命令[go run ./]等同于[go run *.go]
本文标题:2022-08-10 go run *.go
本文链接:https://www.haomeiwen.com/subject/wneawrtx.html
网友评论