Of course, once you post about a problem, you immediately figure it out.
I forgot to update the go files in the package folder to reflect the name
change
package liverserver--> package gols fixes the issue.
On Sunday, January 17, 2021 at 10:14:36 PM UTC-6 DrGo wrote:
> 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/e82d5763-a95f-4dc8-8267-efeef8a13953n%40googlegroups.com.