GoでGithub API v4から取得したくてgithubqlを使ってみました。
https://qiita.com/siso9to/items/8ee0fc166902d5026649
https://github.com/shurcooL/githubv4
慣れないGoでAPIやJSONを扱うものは今後Goでは触りたくないと思ってしまいました。
そんな中でも強烈にハマったエラーが下記です。
reflect.Value.Interface: cannot return value obtained from unexported field or method
原因は非常に単純でプロパティ名も先頭の文字が大文字じゃないといけなかっただけでした。
type PullRequest struct {
// ↓ok
Title githubv4.String
// ↓ng
url githubv4.URI
}