Skip to content

Instantly share code, notes, and snippets.

@Htbaa
Last active December 16, 2015 05:19
Show Gist options
  • Save Htbaa/5383611 to your computer and use it in GitHub Desktop.
Save Htbaa/5383611 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
resp, err := http.Get("http://maximus.htbaa.com/module/sources/json")
if err != nil {
fmt.Printf("Error: %s", err)
return
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
fmt.Println(body)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment