Help needed (noob): type XX interface { … } with no implementation?


Help needed (noob): type XX interface { … } with no implementation?

Hello.

So I've been looking at using go-git and can't clone my repo, because I need authorisation as well. So, there's the function "git.PlainClone" which takes a "git.CloneOptions" type struct. This "CloneOptions" has the property "Auth" and it expects a "transport.AuthMethod". I just can't seem to be able to figure out what that really means. How to I correctly pass anything here? The method "Name()" isn't even implemented. Should I do that? I'm just lost… thanks.

Submitted July 17, 2017 at 07:02PM by blackcomb-pc
via reddit http://ift.tt/2t7I5Li

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s