//go:build windows package openfolder import ( "os/exec" "strings" ) func OpenLocation(path string) error { // explorer requires backslashes. p := strings.ReplaceAll(path, "/", "\\") return exec.Command("explorer.exe", p).Start() }