Status code check of URLs
Flag | Name | Example Input |
---|---|---|
-u | url | https://google.com |
-f | file | "./path/to/filename.txt" |
go run main.go -u=https://google.com
200 | https://google.com
https://jsonplaceholder.typicode.com/posts
https://jsonplaceholder.typicode.com/comments
https://jsonplaceholder.typicode.com/albums
https://jsonplaceholder.typicode.com/photos
https://jsonplaceholder.typicode.com/todos
https://jsonplaceholder.typicode.com/users
go run main.go -f="path/to/filename.txt"
200 | https://jsonplaceholder.typicode.com/posts
200 | https://jsonplaceholder.typicode.com/comments
200 | https://jsonplaceholder.typicode.com/albums
200 | https://jsonplaceholder.typicode.com/photos
200 | https://jsonplaceholder.typicode.com/todos
200 | https://jsonplaceholder.typicode.com/users