go-octokit
go-octokit copied to clipboard
Does not install using go get
Hi,
trying to use this for the first time, following the first example:
main.go:
package main
import (
"fmt"
"github.com/octokit/go-octokit/octokit"
)
func main() {
client := octokit.NewClient(nil)
url, err := octokit.UserURL.Expand(octokit.M{"user": "jingweno"})
if err != nil {
// Handle error
}
user, result := client.Users(url).One()
if result.HasError() {
// Handle error
}
fmt.Println(user.ReposURL) // https://api.github.com/users/jingweno/repos
}
Run:
go get github.com/octokit/go-octokit/octokit
github.com/octokit/go-octokit/octokit imports
github.com/lostisland/go-sawyer/mediaheader: cannot find module providing package github.com/lostisland/go-sawyer/mediaheader
How do I install this module?
You have to do this go get -u github.com/octokit/go-octokit@master
, looks like doing go get
gives a broken version of go-octokit