Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 760 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 760 Bytes

Build Status Go Report Card

Description

go-ok takes an input file which has a list of IP addresses and port and checks if HTTP GET is successful (200) for the host:port. If yes, it prints the IP address and port on the console

Usage

$ go get github.com/jayapriya90/go-ok

$ go-ok -fpath=<path to input file>

Sample Input/Output

$ go-ok -fpath=input.txt  
HTTP GET is successful for  
216.58.195.78:80  
172.217.3.17:80


$ go-ok -fpath=input.txt >> output.txt