15 lines
240 B
Go
15 lines
240 B
Go
//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()
|
|
}
|