goplus / gop

The Go+ programming language is designed for engineering, STEM education, and data science. Our vision is to enable everyone to become a builder of the digital world.
https://goplus.org
Apache License 2.0
8.92k stars 546 forks source link

#!/usr/bin/env qrun 的代码有办法编译成可执行文件吗? 另外.go文件以#!/usr/bin/env qrun开头vim会提示语法检查错误,有什么解决方案吗? #561

Closed gcxfd closed 4 years ago

gcxfd commented 4 years ago

!/usr/bin/env qrun 的代码有办法编译成可执行文件吗?

另外.go文件以#!/usr/bin/env qrun开头vim会提示语法检查错误,有什么解决方案吗?

xushiwei commented 4 years ago

You can do the following steps to generate executable binary app:

cd <theDirectoryOfYourApp>
gop go .
go install .   # Or: go build .

See https://github.com/goplus/gop/issues/453.

另外.go文件以#!/usr/bin/env qrun开头vim会提示语法检查错误,有什么解决方案吗?

Use .gop as file extension.