Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading module requirements gopkg.in/resty.v1 #6

Closed
darrenparkinson opened this issue Aug 21, 2019 · 2 comments
Closed

Error loading module requirements gopkg.in/resty.v1 #6

darrenparkinson opened this issue Aug 21, 2019 · 2 comments

Comments

@darrenparkinson
Copy link

Hi,

Just trying to use the new version and I'm getting the following error, any thoughts?

go: github.com/go-resty/[email protected]: parsing go.mod: unexpected module path "gopkg.in/resty.v1"
go: error loading module requirements

Essentially I just created a new repo, used go get to get resty v2.0.0 and go-cisco-webex-teams v0.2.0, created a basic main.go using the library and I get the error.

main.go:

package main

import (
	"github.com/go-resty/resty/v2"
	webexteams "github.com/jbogarin/go-cisco-webex-teams/sdk"
)

var Client *webexteams.Client

func main() {
	client := resty.New()
	token := "" 
	client.SetAuthToken(token)
	Client = webexteams.NewClient(client)

}

Thanks.

@jbogarin
Copy link
Owner

The import for resty should be

"github.com/go-resty/resty"

I'm going to update that on the examples.

@jbogarin
Copy link
Owner

I updated the examples to reflect the change. Sorry for the trouble and delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants