From 6c1a4f837408c0736d2745c43209f52b476ee544 Mon Sep 17 00:00:00 2001 From: Brad Lewis Date: Tue, 3 Sep 2019 09:42:38 -0400 Subject: [PATCH] Adding a readline to the script so you can see output --- main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index ed02f53..7267cb5 100644 --- a/main.go +++ b/main.go @@ -2,8 +2,9 @@ package main import ( "fmt" - "golang.org/x/sys/windows/registry" "log" + + "golang.org/x/sys/windows/registry" ) func main() { @@ -95,5 +96,7 @@ func main() { } } - fmt.Println("\nFinished.") + fmt.Println("\nFinished. Press Enter to close.") + var input string + fmt.Scanln(&input) }