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
Yes, now you can write `shell script` in Go+. It supports all shell commands.
11
+
Yes, now you can write `shell script` in XGo. It supports all shell commands.
12
12
13
13
14
14
## Usage
@@ -21,7 +21,7 @@ mkdir "testgsh"
21
21
22
22
You don't need a `go.mod` file, just enter `gop run ./example.gsh` directly to run.
23
23
24
-
It's strange to you that the file extension of Go+ source is not `.gop` but `.gsh`. It is only because Go+ 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/gop/blob/main/doc/classfile.md).
25
25
26
26
We can change [example.gsh](demo/example/example.gsh) more complicated:
27
27
@@ -72,7 +72,7 @@ or:
72
72
exec"mkdir testgsh"
73
73
```
74
74
75
-
If a shell command is a Go/Go+ language keyword (eg. `go`), or the command is a relative or absolute path, you can only execute it in the latter two ways:
75
+
If a shell command is a Go/XGo language keyword (eg. `go`), or the command is a relative or absolute path, you can only execute it in the latter two ways:
76
76
77
77
```coffee
78
78
exec"go", "version"
@@ -165,7 +165,7 @@ total 72
165
165
-rw-r--r-- 1 xushiwei staff 1938 Jun 19 10:00 gop_autogen.go
166
166
```
167
167
168
-
We can use [Go+ 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/gop/blob/main/doc/docs.md#data-processing) to process captured `output`:
0 commit comments