Don't close the cmd promt right away on windows

This commit is contained in:
kolaente 2020-09-16 20:47:51 +02:00
parent 85feb33730
commit ca5dee2467
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import (
"os"
"path"
"path/filepath"
"runtime"
"strings"
)
@ -80,4 +81,9 @@ func main() {
// 4. Done
fmt.Println("Done!")
if runtime.GOOS == "windows" {
fmt.Println("Press enter to close this window...")
_, _ = readText()
}
}