tensorflow-serving-client icon indicating copy to clipboard operation
tensorflow-serving-client copied to clipboard

Is there an example for golang with ```go get```?

Open DachuanZhao opened this issue 4 years ago • 3 comments

I have run

go get github.com/figroc/tensorflow-serving-client@v2

, then what should I do ?

DachuanZhao avatar Jun 28 '21 10:06 DachuanZhao

There is a test in tests/go/. You might check it out.

figroc avatar Jul 02 '21 15:07 figroc

Hi, I'm creating a go program and want to use your module. I've done "go get" and "go mod download" and in the code:

import (
	"github.com/figroc/tensorflow-serving-client"
)

But I get this error:

no required module provides package github.com/figroc/tensorflow-serving-client; to add it:
        go get github.com/figroc/tensorflow-serving-client

Obviusly already done "get" and the sorces have been downloaded ... what shoudl I do?

budo76 avatar Jul 29 '21 08:07 budo76

Wow... I somehow solved. First the package was wrong, I had to import the specific package and not only the module (and this is obvious - my fault), so something like this:

import (
	tfs "github.com/figroc/tensorflow-serving-client/v2/go/tensorflow_serving/apis"
)

Note that "v2" on the path is necessary otherwise the version "v2.1.0+incompatible" would be loaded instead of the latest "v2.5.1"... and in the "v2.1.0" there's no "go" subdir so no package to find

budo76 avatar Jul 29 '21 09:07 budo76