go-bitbucket
go-bitbucket copied to clipboard
Result must be addressable (a pointer)
If this is a noob mistake I apologize, I've asked around on slack/IRC and can't seem to figure out what I'm doing wrong here... Other people seemed stumped too.
I copied your test case for repos and get the following error..
package main
import (
"github.com/ktrysmt/go-bitbucket"
)
func main() {
client := bitbucket.NewBasicAuth("me", "pass")
ro := &bitbucket.RepositoryOptions{
Owner: "owner",
Repo_slug: "repo",
}
res, err := client.Repositories.Repository.Get(ro)
if err == nil {
print(res)
print("no error!")
}
panic(err)
}
[2] % go run test.go /tmp
panic: result must be addressable (a pointer)
goroutine 1 [running]:
main.main()
/tmp/test.go:19 +0x14c
exit status 2
I'm on go 1.10.
Oops, I did not tested on v1.10, and I will. Thank you for your issue.