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:
|
||||
go build
|
||||
./example1
|
||||
# go build
|
||||
GO111MODULE="off" go run main.go
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
all:
|
||||
go build
|
||||
./example2
|
||||
# go build
|
||||
GO111MODULE="off" go run 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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue