我用go build指令编译文件是提示以下错误
GetFileAttributesEx store.go: The system cannot find the file specified.
而我的指令是在sorter.go所在的目录中执行的
sorter.go中的内容如下:
```go
package main
import (
"flag"
"fmt"
)
var infile *string = flag.String("i", "infile", "File contains values for sorting")
var outfile *string = flag.String("o", "outfile", "File to receive sorted values")
var algorithm *string = flag.String("a", "qsort", "Sort algorithm")
func main() {
flag.Parse()
if infile != nil {
fmt.Println("infile = ", *infile, "outfile =", *outfile, "algorithm =", *algorithm)
}
}
```
请问这是什么原因呢,我是个新手,刚开始接触go,是根据书上的代码写得这段,而且包的目录也与教程一致
更多评论