1
I created a pacote inside $GOPATH/src/github.com/meu-user/meupacote with a file meupacote.go who has the function main and another folder with the name productsthat holds the file products.go, in this my file products.go have a function getBySKU, how can I use this function in my main file meupacote.go? See the example below:
- meupacote
  - products
    -products.go
  - meupacote.go
I am trying to use it directly because it is "within the same package" and I only get the error that the function getBySKU is undefined, I also tried to define the function as "exportable" with GetBySKU and the same error remains.
Your reply helped me to reach the solution! thanks! but as I am creating in my
$GOPATHto import it I had to put `import "github.com/my-user/my-package/product"– RFL
True! I forgot that detail. I have already accepted the edition suggested by Mario Idival that corrects this
– FBidu