This commit is contained in:
2
main.go
2
main.go
@@ -18,6 +18,7 @@ type Output struct {
|
|||||||
AuthSuccess bool
|
AuthSuccess bool
|
||||||
Error string
|
Error string
|
||||||
CertLoaded bool
|
CertLoaded bool
|
||||||
|
Results string
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetFilePath(path string) string {
|
func GetFilePath(path string) string {
|
||||||
@@ -171,6 +172,7 @@ func main() {
|
|||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
output.AuthSuccess = true
|
output.AuthSuccess = true
|
||||||
|
output.Results = fmt.Sprintf("Search result count: %d", len(result.Entries))
|
||||||
b, _ := json.Marshal(output)
|
b, _ := json.Marshal(output)
|
||||||
fmt.Println(string(b))
|
fmt.Println(string(b))
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user