go-micro run createfile The filename, directory name, or volume label syntax is incorrect?-灵析社区

一本正经写代码

go-micro的搭建 go-micro.exe version v1.1.4 1. go install github.com/go-micro/cli/cmd/go-micro@latest 2. go-micro new service helloworld 3. make init proto update tidy 4. go-micro run 结果: PS D:\pri\go-micro> go-micro run CreateFile C:\Users\rain\AppData\Local\Temp\micro\uploads\D:\pri\go-micro: The filename, directory name, or volume label syntax is incorrect. 看错误应该是路径没有指向正确 这样执行 go-micro run ./helloworld 也是同样的错误

阅读量:338

点赞量:19

问AI
从你发的结果来看,执行路径好像有问题。 "go-micro new service helloworld " 这个命令会创建一个helloworld项目文件夹 你需要cd helloworld ,然后进行下一步操作,包括go-micro run 也是在helloworld文件夹下执行 https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250106/ae2319b680b9e97c93fe7425f88069e4.png