summaryrefslogtreecommitdiff
path: root/example2/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'example2/main.go')
-rw-r--r--example2/main.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/example2/main.go b/example2/main.go
new file mode 100644
index 0000000..d8f39b4
--- /dev/null
+++ b/example2/main.go
@@ -0,0 +1,11 @@
+package main
+
+import "log"
+import "fmt"
+import "git.wit.com/wit/shell"
+
+func main() {
+ tmp, output, err := shell.Run("cat /etc/issue")
+ log.Println("cat /etc/issue returned", tmp, "error =", err)
+ fmt.Print(output)
+}