From e2e5f320aebad5d1bef5a4aced241aa32caf41b5 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Fri, 21 Jul 2023 11:34:00 +1000 Subject: [PATCH] add output message --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 69c538c..ebd636b 100644 --- a/main.go +++ b/main.go @@ -18,6 +18,7 @@ type Output struct { AuthSuccess bool Error string CertLoaded bool + Results string } func GetFilePath(path string) string { @@ -171,6 +172,7 @@ func main() { return } else { output.AuthSuccess = true + output.Results = fmt.Sprintf("Search result count: %d", len(result.Entries)) b, _ := json.Marshal(output) fmt.Println(string(b)) return