cgroups/fs/utils.go
func getCgroupParamUint(cgroupPath, cgroupFile string) (uint64, error) {
	contents, err := ioutil.ReadFile(filepath.Join(cgroupPath, cgroupFile))
	if err != nil {
		return 0, err
	}

	return parseUint(strings.TrimSpace(string(contents)), 10, 64)
}
func getCgroupParamUint(cgroupPath, cgroupFile string) (uint64, error) {
	contents, err := ioutil.ReadFile(filepath.Join(cgroupPath, cgroupFile))
	if err != nil {
		return 0, err
	}

	return parseUint(strings.TrimSpace(string(contents)), 10, 64)
}
func getCgroupParamUint ( cgroupPath , cgroupFile string ) ( uint64 , error ) { contents , err := ioutil . ReadFile ( filepath . Join ( cgroupPath , cgroupFile ) ) if err != nil { return 0 , err } return parseUint ( strings . TrimSpace ( string ( contents ) ) , 10 , 64 ) }
// Gets a single uint64 value from the specified cgroup file.
Gets a single uint64 value from the specified cgroup file .