提交 c261f1d7 编写于 作者: chai2010's avatar chai2010

更新 readme

上级 f96ea1ba
......@@ -112,22 +112,3 @@ $ go run main.go run _examples/prime
更多例子 [_examples](_examples)
## 作为脚本执行
凹语言本身也可以像 Lua 语言被嵌入 Go 宿主语言环境执行:
```
package main
import (
"fmt"
"wa-lang.org/wa/api"
)
func main() {
output, err := api.RunCode(api.DefaultConfig(), "hello.wa", code)
fmt.Print(string(output), err)
}
```
注:作为脚本执行目前只支持本地环境。
......@@ -118,22 +118,3 @@ $ go run main.go run _examples/prime
More examples [_examples](_examples)
## Execut as a script
The Wa language itself can also be executed like the Lua language embedded in the Go host locale:
```
package main
import (
"fmt"
"wa-lang.org/wa/api"
)
func main() {
output, err := api.RunCode(api.DefaultConfig(), "hello.wa", code)
fmt.Print(string(output), err)
}
```
Note: Executing as a script currently only supports native environments.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册