Skip to content

Commit a71ff4f

Browse files
author
udhos
committed
Show runtime version in test program.
1 parent 839f21d commit a71ff4f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

update-golang.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,12 @@ test_runhello() {
385385

386386
unsudo tee "$hello_tmp" >/dev/null <<__EOF__
387387
package main
388-
import "fmt"
388+
import (
389+
"fmt"
390+
"runtime"
391+
)
389392
func main() {
390-
fmt.Printf("hello, world\n")
393+
fmt.Printf("hello, world - %s\n", runtime.Version())
391394
}
392395
__EOF__
393396

update-golang.sh.sha256

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3d06a3363f2d51dbe3de5957947a7854e8e1e441596ff65c9e66b3eea07e7329 update-golang.sh
1+
2cda4d3b21f46ae6f77deba5c0676a5dadb235bf07bbd1d90138eb37d76a35eb update-golang.sh

0 commit comments

Comments
 (0)