9 "github.com/bitly/go-simplejson"
12func Request(req *http.Request) (*simplejson.Json, error) {
13 httpclient := &http.Client{}
14 resp, err := httpclient.Do(req)
18 body, err := ioutil.ReadAll(resp.Body)
23 if resp.StatusCode != 200 {
24 log.Printf("got response code %d - %s", resp.StatusCode, body)
25 return nil, errors.New("api request returned non 200 status code")
27 data, err := simplejson.NewJson(body)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list