thecodingmachine / gotenberg-go-client

Go client for the Gotenberg API
MIT License
57 stars 33 forks source link

cannot find package github.com/thecodingmachine/gotenberg-go-client/v7 #17

Open Vesli opened 4 years ago

Vesli commented 4 years ago

go version go1.13.5 darwin/amd64

following the doc I ran:

go get -u github.com/thecodingmachine/gotenberg-go-client/v7

which produced:

package github.com/thecodingmachine/gotenberg-go-client/v7: cannot find package "github.com/thecodingmachine/gotenberg-go-client/v7" in any of:
    /usr/local/go/src/github.com/thecodingmachine/gotenberg-go-client/v7 (from $GOROOT)
    /Users/jean-charlespassepont/go/src/github.com/thecodingmachine/gotenberg-go-client/v7 (from $GOPATH)

but it's including well with go mods. You might want to update the README

gulien commented 4 years ago

Yes indeed I should specify that this command works with go mods.

Thanks for the tip 👍

gulien commented 4 years ago

@Vesli if you want, you could open a PR on the main repository with the documentation updates 😄

Vesli commented 4 years ago

That would be a first time for me, ok I'll try :D

gulien commented 4 years ago

@Vesli actually I've just tested it on a "blank" project and it works just fine:

$ go get -u github.com/thecodingmachine/gotenberg-go-client/v7
go: finding github.com/thecodingmachine/gotenberg-go-client/v7 v7.1.0
go: downloading github.com/thecodingmachine/gotenberg-go-client/v7 v7.1.0
go: extracting github.com/thecodingmachine/gotenberg-go-client/v7 v7.1.0

Are you using Go Modules or a more traditional $GOPATH?