Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a table output #1

Merged
merged 1 commit into from
Oct 18, 2018
Merged

Added a table output #1

merged 1 commit into from
Oct 18, 2018

Conversation

italolelis
Copy link
Owner

Instead of giving an output to stdout only I've added a table output when in verbose mode.

❯ go run main.go check google.com twitter.com not-valid-blah.com -v
   ⨯ Get http://not-valid-blah.com: dial tcp: lookup not-valid-blah.com: no such host
   ⨯ Unreachable!              domain=not-valid-blah.com
   • Reachable!                domain=twitter.com
   • Reachable!                domain=google.com
+-------------+-------------+------------+----------------+---------------+-------------------+------------------+---------------+
| Domain      | Status Code | DNS Lookup | TCP Connection | TLS Handshake | Server Processing | Content Transfer | Total Time    |
+-------------+-------------+------------+----------------+---------------+-------------------+------------------+---------------+
| twitter.com | 200         | 1          | 20             | 240           | 173               | 2562047          | 9223372036854 |
| google.com  | 200         | 1          | 31             | 0             | 87                | 2562047          | 9223372036854 |
+-------------+-------------+------------+----------------+---------------+-------------------+------------------+---------------+

@coveralls
Copy link

Pull Request Test Coverage Report for Build 57

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 88.462%

Totals Coverage Status
Change from base Build 54: 0.0%
Covered Lines: 46
Relevant Lines: 52

💛 - Coveralls

@italolelis italolelis merged commit 49e9fcb into master Oct 18, 2018
@italolelis italolelis deleted the table-output branch October 18, 2018 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants