Go by Example: File Paths
The filepath package provides functions to parse and construct file paths in a way that is portable between operating systems; dir/file on Linux vs. dir\file on Windows, for example. package main import ( "fmt" "path/filepath" "strings" ) func main () { Join should be used to construct paths in a portable way.
https://gobyexample.com/file-paths