Hello,
so I created a small library (simple implementation of 2-gram string
similarity) and I published it (https://github.com/lzap/stringsim). I have
a program that use it using import "stringsim/adjpair" and since I have
installed in my $GO/src directory structure correctly and installed with go
install, it imports and works fine.
Now I would like to change the import in my program to this format:
import "github.com/lzap/stringsim/adjpair"
and for this, I assume, I need to install the package first (if this is the
right approach). Unfortunately:
$ go get github.com/lzap/stringsim
package github.com/lzap/stringsim
imports github.com/lzap/stringsim
imports github.com/lzap/stringsim: no Go source files in
/home/lzap/work/go/src/github.com/lzap/stringsim
Second question is - how do I update a package installed using "go get"?
And how to do this fluently when I will work both on library and on my
program that use it? What is the best strategy in this case?
Thanks
--