diff options
| author | Jeff Carr <[email protected]> | 2024-10-11 23:01:55 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-11 23:01:55 -0500 |
| commit | 25f7aa1d22b332a168edbcc8bcd46308aca9c767 (patch) | |
| tree | 0c42c38b34e09718f104781d457e64cb893bcaa9 /main.go | |
| parent | f71da2ef59a51788f32b5fe5eb600ce40dbbdd75 (diff) | |
add http listen
Signed-off-by: Jeff Carr <[email protected]>
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) } } - |
