Commit c2741254 authored by Ubuntu's avatar Ubuntu

add gpu

parent 5d685060
module gpuhw module gpuhw
go 1.22.1 go 1.20
require github.com/jaypipes/ghw v0.12.0 require github.com/jaypipes/ghw v0.12.0
......
...@@ -36,6 +36,14 @@ func main() { ...@@ -36,6 +36,14 @@ func main() {
res = append(res, cpu...) res = append(res, cpu...)
gpu, err := getGPU()
if err != nil {
c.SendString("getGPU err: " + err.Error())
}
res = append(res, gpu...)
return c.JSON(res) return c.JSON(res)
// Send a string response to the client // Send a string response to the client
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment