into a package main?
Hello, This error that you are getting is stating that there are 2 package instantiation happening in the same folder/package.
goweek.go is a part of
package goweek and
hello.go is a part of
package main in the same folder.
goweek.go (above hello.go) a copy of
If yes then you need to change the
package goweek to
package main to directly access its functions (which is not recommended but will work).
Recommended approach: use
go get github.com/grsmv/goweek and import it naturally as you did in the above screenshot.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.