Skip to content

Instantly share code, notes, and snippets.

@ranskills
Last active May 10, 2020 10:46
Show Gist options
  • Save ranskills/0a87e63386ceb16557240144d72f0e1b to your computer and use it in GitHub Desktop.
Save ranskills/0a87e63386ceb16557240144d72f0e1b to your computer and use it in GitHub Desktop.
import (
"path"
"path/filepath"
)
func GetFullPath(filename string) string {
// baseDir to be some base directory
return filepath.FromSlash(path.Join(baseDir, filename))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment