func isCpusetSet(r *configs.Resources) bool { … } func setCpuset(dirPath string, r *configs.Resources) error { … }