Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dannolan
Created March 2, 2018 04:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannolan/c99bd13e4982fbc2856f8420d180e3d0 to your computer and use it in GitHub Desktop.
Save dannolan/c99bd13e4982fbc2856f8420d180e3d0 to your computer and use it in GitHub Desktop.
Go Range Request
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Range", "bytes=0-5088")
var client http.Client
resp, _ := client.Do(req)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment