19 lines
208 B
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()
|
||
|
}
|