MAKE: update Makefile rules
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
ad28138b84
commit
1b08d999eb
|
@ -1,3 +1,3 @@
|
||||||
all:
|
all:
|
||||||
go build
|
# go build
|
||||||
./example1
|
GO111MODULE="off" go run main.go
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
all:
|
all:
|
||||||
go build
|
# go build
|
||||||
./example2
|
GO111MODULE="off" go run main.go
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "log"
|
import "log"
|
||||||
import "fmt"
|
// import "fmt"
|
||||||
import "git.wit.org/wit/shell"
|
import "git.wit.org/wit/shell"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
tmp, output, err := shell.Run("cat /etc/issue")
|
err := shell.Run("cat /etc/issue")
|
||||||
log.Println("cat /etc/issue returned", tmp, "error =", err)
|
log.Println("cat /etc/issue returned", err)
|
||||||
fmt.Print(output)
|
// fmt.Print(output)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue