File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -10,3 +10,15 @@ func GenerateAPIsInformationMessage(resp *StatusInfo) {
1010 fmt .Printf ("Last Update: %s \n " , resp .UpdatedAt )
1111 fmt .Println ("-------------------" )
1212}
13+
14+ func GenerateBtgAPIsInformationMessage (resp []* StatusInfo ) {
15+ fmt .Println ("Checking BTG APIs: " )
16+ fmt .Println ()
17+ for _ , statusInfo := range resp {
18+ fmt .Printf ("Checking %s APIs Status \n " , statusInfo .Name )
19+ fmt .Printf ("Status: %s \n " , statusInfo .Description )
20+ fmt .Printf ("Last Update: %s \n " , statusInfo .UpdatedAt )
21+ fmt .Println ()
22+ }
23+ fmt .Println ("-------------------" )
24+ }
Original file line number Diff line number Diff line change @@ -81,7 +81,5 @@ func checkBtgPactualStatus(wg *sync.WaitGroup) {
8181
8282 resp := btgpactual .CheckStatus ()
8383
84- for _ , api := range resp {
85- util .GenerateAPIsInformationMessage (api )
86- }
84+ util .GenerateBtgAPIsInformationMessage (resp )
8785}
You can’t perform that action at this time.
0 commit comments