Hello, I am trying to get variables from another package nevertheless I am getting package pkg/variable is not in GOROOT (C:\Program Files\Go\src\pkg\variable). I do not want to create a pkg in goroot, how can I call a package that is not in goroot? My main code is inside Desktop\MyApp and the variable pkg is in Desktop\MyApp\pkg. Below the codes showing how I am trying do it:
As your module is myapp.go the path to your variables would be myapp.go/pkg (or myapp.go/pkg/bariables, the folder layout is not exactly clear in what you write).
And I do not care for squiggly lines. As long as it compiles on the terminal everything is fine, and if there is an error in the terminal, tell us that.