From e1953f339da120104de48aef588bdfe2368fdb63 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Fri, 19 Feb 2021 23:33:12 +0000 Subject: [PATCH] Version 1.3.1: [FIX] Allow disabling header --- IPInfo.go | 3 --- Main.go | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/IPInfo.go b/IPInfo.go index 7749a39..8f0b19b 100644 --- a/IPInfo.go +++ b/IPInfo.go @@ -2,7 +2,6 @@ package main import ( "fmt" - "os" "strings" ) @@ -26,8 +25,6 @@ type IPAddressInfo struct { func printIPInfo(input string, wantPrefixes bool) { var IPInfo IPAddressInfo = getIPInfo(input) - fmt.Printf("%+v\n", IPInfo) - os.Exit(200) var location string = IPInfo.Country + "/" + IPInfo.RegionName + "/" + IPInfo.City var bgpAS string = strings.Fields(IPInfo.AS)[0] fmt.Println("IP Address: ", IPInfo.IPAddress) diff --git a/Main.go b/Main.go index 9e5cf13..da792e3 100644 --- a/Main.go +++ b/Main.go @@ -17,6 +17,7 @@ func main() { flag.Usage = func() { fmt.Printf("Usage of iPilot: \n") + fmt.Printf("Example: iPilot -b=false -i=me -p \n") fmt.Printf(" -b bool enable/disable header (default true)\n") fmt.Printf(" -h bool view help\n") fmt.Printf(" -i string IP address or domain\n")