我正在尝试编写一个使用this package的应用程序。我有以下代码段:
import (
"github.com/ChimeraCoder/anaconda"
"github.com/garyburd/go-oauth/oauth"
)
c, _, err := anaconda.GetCredentials(&oauth.Credentials{}, "...")
这会导致以下编译错误:
app.go:40:9: cannot use "github.com/garyburd/go-oauth/oauth".Credentials literal
(type *"github.com/garyburd/go-oauth/oauth".Credentials) as type
*"github.com/ChimeraCoder/anaconda/vendor/github.com/garyburd/go-oauth/oauth".Credentials
in argument to anaconda.GetCredentials
这是因为github.com/ChimeraCoder/anaconda
正在使用vendoring。
如何创建*oauth.Credentials
的实例?