Browse Source

Add compiler, Arch, and OS to info command

Frédéric Guillot 8 năm trước cách đây
mục cha
commit
b9fee95cf2
1 tập tin đã thay đổi với 3 bổ sung và 0 xóa
  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)
 }