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.