From 12b13d63e2429fbf77f53d7d3d5791aec71496c5 Mon Sep 17 00:00:00 2001 From: udhos Date: Sat, 25 Nov 2017 16:16:26 -0200 Subject: [PATCH] Example for bat - https://github.com/astaxie/bat --- README.md | 3 +++ index.html | 3 +++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 852a8e9..6ca1840 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/index.html b/index.html index 979ef63..9f41723 100644 --- a/index.html +++ b/index.html @@ -54,6 +54,9 @@ $ wget -qO- ifconfig.co {{ .IP }} $ fetch -qo- https://ifconfig.co +{{ .IP }} + +$ bat -print=b ifconfig.co/ip {{ .IP }} {{ if .IsLookupCountryEnabled }}

Country lookup: