Skip to content

Instantly share code, notes, and snippets.

@rodesousa
Last active June 29, 2018 12:58
Show Gist options
  • Select an option

  • Save rodesousa/c778b7cc5d6461e79048a4ce45ad4162 to your computer and use it in GitHub Desktop.

Select an option

Save rodesousa/c778b7cc5d6461e79048a4ce45ad4162 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func main() {
resp, _ := http.Get("https://gitlab.com/api/v4/groups/1768437?private_token=XX")
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment