golang-exercises/query-cpu/cmd/client.go

19 lines
208 B
Go

package main
import (
"fmt"
"github.com/jaypipes/ghw"
"log"
)
func client() {
cpuCores, err := ghw.CPU()
if err != nil {
log.Fatalf("Error occurred: %v", err)
}
fmt.Println(cpuCores)
server()
}