Ran gofmt.
This commit is contained in:
parent
2b0fb2e379
commit
9ec9201f28
@ -52,7 +52,7 @@ func (a ByLast) Less(i, j int) bool { return a[i].Last < a[j].Last }
|
||||
func (s *Server) Ping() (float64, error) {
|
||||
// for i := 0; i < 3; i++ {
|
||||
ct.ChangeColor(ct.Cyan, false, ct.None, false)
|
||||
fmt.Println("[*] Testing server:", s.URL)
|
||||
fmt.Println("[*] Testing server:", s.URL)
|
||||
r, err := ping.Ping(s.URL)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
@ -115,8 +115,8 @@ func main() {
|
||||
body, err := ioutil.ReadAll(response.Body)
|
||||
|
||||
jsonErr := json.Unmarshal(body, &servers)
|
||||
|
||||
ct.ChangeColor(ct.Green, false, ct.None, false)
|
||||
|
||||
ct.ChangeColor(ct.Green, false, ct.None, false)
|
||||
fmt.Printf("[*] There are %d total servers\n", len(servers))
|
||||
if jsonErr != nil {
|
||||
ct.ChangeColor(ct.Red, false, ct.None, false)
|
||||
|
Loading…
Reference in New Issue
Block a user