mirror of https://github.com/mpolden/echoip
Example for bat - https://github.com/astaxie/bat
This commit is contained in:
parent
f644b0b488
commit
12b13d63e2
|
@ -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:
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue