Open
Description
client := github.NewClient(nil).WithAuthToken(e.getGithubToken())
ctx, cancelFunc := context.WithTimeout(context.Background(), 5*time.Second)
defer cancelFunc()
repo, _, err := client.Repositories.Get(ctx, "google/go-github", "commits")
if err != nil {
log.Fatal(err)
}
fmt.Println(repo)
2024/07/24 14:54:44 json: cannot unmarshal array into Go value of type github.Repository
Activity
gmlewis commentedon Jul 25, 2024
Could you please give us more information by sharing the output when using
https://github.com/gmlewis/go-httpdebug
with this call?