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: pathutils.go
    path of file: ./repos/go-doudou/toolkit/pathutils
    
    the code of the file until where you have to start completion: package pathutils

import (
	"github.com/unionj-cloud/go-doudou/v2/toolkit/stringutils"
	"os"
	"path/filepath"
	"runtime"
)

// Abs converts relative path to absolute path
func Abs(rel string) string {
	_, fileName, _, _ := runtime.Caller(1)
	return filepath.Join(filepath.Dir(fileNam
    
func FixPath(dir string, fallback string) (string, error) {
	var (
		wd  string
		ret string
	)
	if stringutils.IsEmpty(dir) {
		wd, _ = os.Getwd()
		ret = filepath.Join(wd, fallback)
		return ret, nil
	}
	if !filepath.IsAbs(dir) {
		wd, _ = os.Getwd()
		ret = filepath.Join(wd, dir)
		return ret, nil
	}
	return dir, nil
}