Hi I want to call a method inside the main package, my project struct is like this: src:
- go files : package main
-
Postgres folder:
- go files: postgres package
now I want to call a method inside main package from the go files inside the postgres folder that is from postgres package. I tried to import "foo/src" then using src.Myfunction but I got an error:
import "foo/src" is a program, not an importable package