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: hash.go
    path of file: ./repos/Cloudreve/pkg/hashid
    
    the code of the file until where you have to start completion: package hashid

import (
	"errors"

	"github.com/cloudreve/Cloudreve/v3/pkg/conf"
	"github.com/speps/go-hashids"
)

// ID类型
const (
	ShareID  = iota // 分享
	UserID          // 用户
	FileID          // 文件ID
	Fo
    
func HashEncode(v []int) (string, error) {
	hd := hashids.NewData()
	hd.Salt = conf.SystemConfig.HashIDSalt

	h, err := hashids.NewWithData(hd)
	if err != nil {
		return "", err
	}

	id, err := h.Encode(v)
	if err != nil {
		return "", err
	}
	return id, nil
}