在GoLang中不可知地解决相对路径OS

How can I resolve a relative path OS agnostically in GoLang. The path in linux is:

../../xyz/requiredFile.

This file path cannot be resolved in windows.

What I have tried:

filepath.Join("..","..","xyz","requiredFile")

results in following in windows:

..\\..\\xyz\equiredFile

Is there a recommended way of doing this.