summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example1/Makefile4
-rw-r--r--example2/Makefile4
-rw-r--r--example2/main.go8
3 files changed, 8 insertions, 8 deletions
diff --git a/example1/Makefile b/example1/Makefile
index 9fc318d..7b4c2b6 100644
--- a/example1/Makefile
+++ b/example1/Makefile
@@ -1,3 +1,3 @@
all:
- go build
- ./example1
+ # go build
+ GO111MODULE="off" go run main.go
diff --git a/example2/Makefile b/example2/Makefile
index 250e900..7b4c2b6 100644
--- a/example2/Makefile
+++ b/example2/Makefile
@@ -1,3 +1,3 @@
all:
- go build
- ./example2
+ # go build
+ GO111MODULE="off" go run main.go
diff --git a/example2/main.go b/example2/main.go
index f19adf4..2e94c7f 100644
--- a/example2/main.go
+++ b/example2/main.go
@@ -1,11 +1,11 @@
package main
import "log"
-import "fmt"
+// import "fmt"
import "git.wit.org/wit/shell"
func main() {
- tmp, output, err := shell.Run("cat /etc/issue")
- log.Println("cat /etc/issue returned", tmp, "error =", err)
- fmt.Print(output)
+ err := shell.Run("cat /etc/issue")
+ log.Println("cat /etc/issue returned", err)
+ // fmt.Print(output)
}