I created a pacote
within $GOPATH/src/github.com/meu-user/meupacote
with a meupacote.go
file that has the main
function and another folder with the name products
that has the products.go
file, in this my products.go
file a getBySKU
function, 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 "inside the same package" and I only get the error that the getBySKU
function is undefined, I also tried to define the function as "exportable" with GetBySKU
and the same error remains .