Questions tagged [go-github]

Go-Github is a Go library implementing the GitHub API, to manage GitHub resources (repositories, user profiles, organizations, etc.) from Go Lang scripts.

https://github.com/google/go-github

18 questions
0
votes
1 answer

what does "+incompatible" suffix mean in Go github versions?

I am considering upgrading go-github from v17.0.0+incompatible to v28 I notice some versions that go-github released has a +incompatible suffix, especially for the v1 category. What does that entail? I am guessing version with +incompatible are…
OLIVER.KOO
  • 5,654
  • 3
  • 30
  • 62
0
votes
1 answer

How can I set HTTP request headers when using Go-Github and an http.Transport?

I am writing an app that uses the GitHub API to look at repositories in my GitHub orgs. I am using the github.com/google/go-github library. I am also using the github.com/gregjones/httpcache so that I can do token based authentication as well as set…
Russell Seymour
  • 1,333
  • 1
  • 16
  • 35
-1
votes
2 answers

Error trying to use an empty interface parameter for returning data

I'm trying to write a wrap around a function that uses an interface{} parameter to return data, by adding cache. My problem is that once I have a valid interface{} I don't know how to assign it to be returned in the parameter. The wrapped call is…
theist
  • 3,270
  • 2
  • 22
  • 23
1
2