summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-11 23:01:55 -0500
committerJeff Carr <[email protected]>2024-10-11 23:01:55 -0500
commit25f7aa1d22b332a168edbcc8bcd46308aca9c767 (patch)
tree0c42c38b34e09718f104781d457e64cb893bcaa9 /main.go
parentf71da2ef59a51788f32b5fe5eb600ce40dbbdd75 (diff)
add http listen
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go15
1 files changed, 10 insertions, 5 deletions
diff --git a/main.go b/main.go
index 577afab..b3057fb 100644
--- a/main.go
+++ b/main.go
@@ -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)
}
}
-