|
@ -3,6 +3,7 @@ package main |
|
|
import ( |
|
|
import ( |
|
|
"flag" |
|
|
"flag" |
|
|
"fmt" |
|
|
"fmt" |
|
|
|
|
|
"runtime" |
|
|
"syscall" |
|
|
"syscall" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
@ -14,6 +15,10 @@ func main() { |
|
|
flag.Parse() |
|
|
flag.Parse() |
|
|
|
|
|
|
|
|
fillInDiskStatus(*dir) |
|
|
fillInDiskStatus(*dir) |
|
|
|
|
|
|
|
|
|
|
|
fmt.Printf("OS: %v\n", runtime.GOOS) |
|
|
|
|
|
fmt.Printf("Arch: %v\n", runtime.GOARCH) |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func fillInDiskStatus(dir string) { |
|
|
func fillInDiskStatus(dir string) { |
|
|