diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -15,6 +15,7 @@ package main import ( + "embed" "flag" "fmt" "log" @@ -27,6 +28,9 @@ import ( var Version string +//go:embed resources/* +var resources embed.FS + func main() { flag.Parse() @@ -59,10 +63,10 @@ func main() { } // fmt.Printf("\nStatus: %s\n", status) /* - if status == qemu.StatusRunning { - // getBlockDevices(dom) - // fmt.Println(name, status, err) - } + if status == qemu.StatusRunning { + // getBlockDevices(dom) + // fmt.Println(name, status, err) + } */ blockDevices, err := dom.BlockDevices() for _, blockDevice := range blockDevices { @@ -79,6 +83,8 @@ func main() { } } // fmt.Printf("\n***************************\n") + + startHTTP() } func displayBlockDevices(domain *qemu.Domain) { @@ -110,4 +116,3 @@ func displayPCIDevices(domain *qemu.Domain) { fmt.Printf("[%10s] [%20s]\n", pciDevice.QdevID, pciDevice.ClassInfo.Desc) } } - |
