Skip to content
/ pcspecs Public

pcspecs is a tool that gathers information of your system components.

Notifications You must be signed in to change notification settings

illud/pcspecs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PcSpecs

Get system info


PcSpecs is a package to gather the system specs.

Features

  • Hostname
  • Platform
  • OsNumber
  • CPU
  • GPU
  • RAM
  • Disk
  • MAINBOARD

Installation

PcSpecs requires Go v1.11+ to run.

Install the dependencies.

go get github.com/illud/pcspecs

Or

go install github.com/illud/pcspecs@latest

How to use

Import:

pcs "github.com/illud/pcspecs"

Example:

package main

import pcs "github.com/illud/pcspecs"

func main(){
    fmt.Println(pcs.Spec())
    /* Output
    DESKTOP-5DH6S74 
    Microsoft Windows 10 Pro
    10 
    Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz
    NVIDIA GeForce RTX 2060 SUPER
    24 
    134
    TUF GAMING B460M-PLUS (WI-FI)*/
}

Or

package main

import pcs "github.com/illud/pcspecs"

func main(){
    fmt.Println(pcs.Spec().GPU)
    /* Output
    NVIDIA GeForce RTX 2060 SUPER
    */
}

License

MIT

PcSpecs is MIT licensed.

About

pcspecs is a tool that gathers information of your system components.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages