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: ymlx.go
    path of file: ./repos/mayfly-go/server/pkg/utils/ymlx
    
    the code of the file until where you have to start completion: package ymlx

import (
	"errors"
	"os"

	"gopkg.in/yaml.v3"
)

// 从指定路径加载yaml文件
func LoadYml(path string, out
    
func LoadYml(path string, out any) error {
	yamlFileBytes, readErr := os.ReadFile(path)
	if readErr != nil {
		return readErr
	}
	// yaml解析
	err := yaml.Unmarshal(yamlFileBytes, out)
	if err != nil {
		return errors.New("无法解析 [" + path + "] -- " + err.Error())
	}
	return nil
}