Not sure what caused the problem to pop up from one day to the next, but I repaired it by downloading *go-master.zip* from github <https://github.com/golang/go> and extracting the directory *text* into *$GOROOT/src* . It now works both as a module and within* $GOPATH/src*.
On Thursday, June 13, 2019 at 1:05:15 AM UTC-4, ThisEndUp wrote: > > All of a sudden, when trying to build programs that used to work, as > recently as a couple of days ago, I'm getting > > main.go:6:2: cannot find package "text/template" in any of: > C:\Go\src\text\template (from $GOROOT) > D:\<user>\Go\src\text\template (from $GOPATH) > > > I was trying this in a module, but when the error popped up, I copied the > program into a directory in $GOPATH/src and got the same result. > > go version reports "go1.12 windows/amd64". I'm using a 64-bit Windows 10 > Home machine. > > Is anyone else experiencing this? Is it temporary? Is there a work-around? > > 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 golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/657accfe-64a8-4f70-906b-47e12ab24f73%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.