You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: config.go
    path of file: ./repos/podman/pkg/machine/compression
    
    the code of the file until where you have to start completion: package compression

import "strings"

type ImageCompression int64

const (
	Xz ImageCompression = iota
	
    
func KindFromFile(path string) ImageCompression {
	switch {
	case strings.HasSuffix(path, Bz2.String()):
		return Bz2
	case strings.HasSuffix(path, Gz.String()):
		return Gz
	case strings.HasSuffix(path, Zip.String()):
		return Zip
	case strings.HasSuffix(path, Xz.String()):
		return Xz
	}
	return Zstd
}