Go
共通定義 import ( "net/http" "encoding/json" "log" ) func get(client *http.Client, url string, accessToken string, typedef interface{}) interface{} { req, _ := http.NewRequest("GET", url, nil) req.Header.Set("Authorization", accessToken) r…
jsonをパースしても [] になってしまう type Category struct { id string label string } func fetchCategories(client *http.Client, accessToken string) { url := "https://cloud.feedly.com/v3/categories" req, _ := http.NewRequest("GET", url, nil)…