我正在尝试编写一个使用此包的应用程序。我有以下片段:
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
正在使用供应商。
那么我怎样才能创建一个实例*oauth.Credentials
呢?