7def60a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package xsysinfo import ( "github.com/jaypipes/ghw" "github.com/jaypipes/ghw/pkg/gpu" ) func GPUs() ([]*gpu.GraphicsCard, error) { gpu, err := ghw.GPU() if err != nil { return nil, err } return gpu.GraphicsCards, nil }