func GetList() ([]*ProcessInfo, error) {
	return findInfo(procFS, make(map[int]string))
}
GetList returns slice with all active processes on the system
package process
import (
	"fmt"
	"io/ioutil"
	"strconv"
	"strings"
	"pkg.re/essentialkaos/ek.v12/fsutil"
	"pkg.re/essentialkaos/ek.v12/system"
)
type ProcessInfo struct {
	Command  string          
	User     string          
	PID      int             
	Parent   int             
	Childs   []*ProcessInfo  
	IsThread bool            
}
var procFS = "/proc"
func GetTree(pid ...int) (*ProcessInfo, error) {
	root := 1
	if len(pid) != 0 {
		root = pid[0]
	}
	if !fsutil.IsExist(procFS + "/" + strconv.Itoa(root)) {
		return nil, fmt.Errorf("Process with PID %d doesn't exist", pid)
	}
	list, err := findInfo(procFS, make(map[int]string))
	if err != nil {
		return nil, err
	}
	if len(list) == 0 {
		return nil, fmt.Errorf("Can't find any processes")
	}
	return processListToTree(list, root), nil
}