Wondering if someone knows what is going on here:
I renamed a module in go.mod from liverserver [sic] to gols and imported it
in main.go in a "cmd" subdir. Now I am getting this error when I compile
main.go:
./main.go:8:2: imported and not used: "github.com/drgo/gols" as liverserver
./main.go:13:12: undefined: gols
./main.go:60:12: undefined: gols
These are the lines referred to in the compiler output above
import (
"github.com/drgo/gols"
)
var config gols.Config
if err :=gols.Serve(&config); err!= nil {
go mod tidy and go go clean -cache -modcache -i -r did not make a
difference.
why the compiler still wants to import gols as liverserver
I am using go1.16beta1 darwin/amd64
Thanks,
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/1987ad00-de52-4dcb-9802-03b76e3f3878n%40googlegroups.com.