Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Zikes
on Feb 12, 2015
|
parent
|
context
|
favorite
| on:
Go kit: Go in the modern enterprise
What I would do in that case is modify checkUrl to return a bool, change the return to return response.StatusCode == 200, and change the for loop contents to
if !checkUrl(url){ fmt.Printf("Non-200 response for %s", url) break }
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: