【发布时间】:2016-11-12 14:56:19
【问题描述】:
我正在尝试从 golang in this link 运行 hello world 但是当我运行 go install 时,我收到了这个错误:
hello.go:1:1: illegal character U+0023
这是我的hello.go
package main
import "fmt"
func main() {
fmt.Printf("hello, world")
}
我正在使用 Mac OS El Captain 怎么了?
【问题讨论】:
-
您的代码中有一个“#”是无效的。
-
使用此链接验证终端的 UTF-8 设置stackoverflow.com/questions/4606570/os-x-terminal-utf-8-issues
标签: go