func registryPath() string {
	uid := os.Getuid()
	if uid != 0 {
		// Non-root users of the registry
		return path.Join("/run/user", fmt.Sprintf("%d", uid), registryDir)
	}

	return path.Join("/run", registryDir)
}
// registryPath gives a default location for the registry
// which varies based on invoking user ID
registryPath gives a default location for the registry
which varies based on invoking user ID
// registryPath gives a default location for the registry // which varies based on invoking user ID
func registryPath() string {
	uid := os.Getuid()
	if uid != 0 {
		return path.Join("/run/user", fmt.Sprintf("%d", uid), registryDir)
	}
	return path.Join("/run", registryDir)
}
func registryPath ( ) string { uid := os . Getuid ( ) if uid != 0 { return path . Join ( " " , fmt . Sprintf ( " " , uid ) , registryDir ) } return path . Join ( " " , registryDir ) }
registryPath gives a default location for the registry
which varies based on invoking user ID
registryPath gives a default location for the registry which varies based on invoking user ID
// Non-root users of the registry