Skip to content

Instantly share code, notes, and snippets.

@NaotoKumagai
Created October 10, 2016 18:28
Show Gist options
  • Save NaotoKumagai/5443f49b86b1b43d3eb9015c2d9f28ce to your computer and use it in GitHub Desktop.
Save NaotoKumagai/5443f49b86b1b43d3eb9015c2d9f28ce to your computer and use it in GitHub Desktop.
goreqのサンプル
package main
import (
"fmt"
"github.com/franela/goreq"
)
func main() {
res, _ := goreq.Request{ Uri: "https://www.googleapis.com/customsearch/v1" }.Do()
body, _ := res.Body.ToString()
fmt.Printf(body)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment