MAKE: update Makefile rules

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2021-11-03 17:38:50 -05:00
parent ad28138b84
commit 1b08d999eb
3 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,3 @@
all: all:
go build # go build
./example1 GO111MODULE="off" go run main.go

View File

@ -1,3 +1,3 @@
all: all:
go build # go build
./example2 GO111MODULE="off" go run main.go

View File

@ -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)
} }