Skip to content

codescalersinternships/psutil-golang-RawanMostafa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Psutils

This repository implements a human-friendly lib for querying processes, memory info and cpu info

Table of Contents

Installation

Get the package

  go get github.com/codescalersinternships/psutil-golang-RawanMostafa

Import the package

   import github.com/codescalersinternships/psutil-golang-RawanMostafa/pkg

Usage

The psutils package offers different APIs like:

1. CPU related APIs

  cpuInfo, err := psutils.GetCpuInfo()
    if err != nil {
        //handle the error
    }

2. Memory related APIs

   memInfo, err := psutils.GetMemInfo()
    if err != nil {
        //handle the error
    }

3. Processes related APIs

  1.  procs, err := psutils.GetProcessList()
     if err != nil {
         //handle the error
     }
  2.  procDetails, err := psutils.GetProcessDetails(1)
     if err != nil {
         //handle the error
     }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages