You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -19,9 +19,9 @@ First, let's create a file named [example.gsh](demo/hello/example.gsh) and write
19
19
mkdir"testgsh"
20
20
```
21
21
22
-
You don't need a `go.mod` file, just enter `gop run ./example.gsh` directly to run.
22
+
You don't need a `go.mod` file, just enter `xgo run ./example.gsh` directly to run.
23
23
24
-
It's strange to you that the file extension of XGo source is not `.xgo` but `.gsh`. It is only because XGo register `.gsh` as a builtin [classfile](https://github.com/goplus/gop/blob/main/doc/classfile.md).
24
+
It's strange to you that the file extension of XGo source is not `.xgo` but `.gsh`. It is only because XGo register `.gsh` as a builtin [classfile](https://github.com/goplus/xgo/blob/main/doc/classfile.md).
25
25
26
26
We can change [example.gsh](demo/example/example.gsh) more complicated:
27
27
@@ -77,7 +77,7 @@ If a shell command is a Go/XGo language keyword (eg. `go`), or the command is a
77
77
```coffee
78
78
exec"go", "version"
79
79
exec"./test.sh"
80
-
exec"/usr/bin/env gop run ."
80
+
exec"/usr/bin/env xgo run ."
81
81
```
82
82
83
83
You can also specify environment variables to run:
@@ -162,10 +162,10 @@ total 72
162
162
-rw-r--r-- 1 xushiwei staff 365 Jun 19 00:25 example.gsh
163
163
-rw-r--r-- 1 xushiwei staff 126 Jun 19 09:33 go.mod
164
164
-rw-r--r-- 1 xushiwei staff 165 Jun 19 09:33 go.sum
165
-
-rw-r--r-- 1 xushiwei staff 1938 Jun 19 10:00 gop_autogen.go
165
+
-rw-r--r-- 1 xushiwei staff 1938 Jun 19 10:00 xgo_autogen.go
166
166
```
167
167
168
-
We can use [XGo powerful built-in data processing capabilities](https://github.com/goplus/gop/blob/main/doc/docs.md#data-processing) to process captured `output`:
168
+
We can use [XGo powerful built-in data processing capabilities](https://github.com/goplus/xgo/blob/main/doc/docs.md#data-processing) to process captured `output`:
0 commit comments