Przeglądaj źródła

Add compiler, Arch, and OS to info command

Frédéric Guillot 7 lat temu
rodzic
commit
b9fee95cf2
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      cli/info.go

+ 3 - 0
cli/info.go

@@ -15,4 +15,7 @@ func info() {
 	fmt.Println("Version:", version.Version)
 	fmt.Println("Build Date:", version.BuildDate)
 	fmt.Println("Go Version:", runtime.Version())
+	fmt.Println("Compiler:", runtime.Compiler)
+	fmt.Println("Arch:", runtime.GOARCH)
+	fmt.Println("OS:", runtime.GOOS)
 }