`Body 'is still open until the function is finished:
defer resp.Body.Close()
instead of try:
resp.Body.Close()