Merge pull request #41 from udhos/master

Example for bat - https://github.com/astaxie/bat
This commit is contained in:
Martin Polden 2017-11-29 19:09:42 +01:00 committed by GitHub
commit 7145e0464f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,9 @@ $ wget -qO- ifconfig.co
$ fetch -qo- http://ifconfig.co
127.0.0.1
$ bat -print=b ifconfig.co/ip
127.0.0.1
```
Country and city lookup:

View File

@ -54,6 +54,9 @@ $ wget -qO- ifconfig.co
{{ .IP }}
$ fetch -qo- https://ifconfig.co
{{ .IP }}
$ bat -print=b ifconfig.co/ip
{{ .IP }}</pre>
{{ if .IsLookupCountryEnabled }}
<h2>Country lookup:</h2>