func (c *Cgroups) Pids(h string) ([]string, []string) {
	label := []string{}
	value := []string{}
	var params = []string{
		"pids.max",
		"pids.current",
	}
	for _, p := range params {
		splited := strings.SplitN(p, ".", 2)
		v, err := c.ReadSimple(h, splited[0], p)
		if v != "" && err == nil {
			label = append(label, p)
			value = append(value, v)
		}
	}
	return label, value
}
Pids return cgroups pids values
package cgroups
import (
	"strings"
)