Problems importing your own package into Go

0

I am just beginning in this programming language called Golang, I am in the part of exporting own packages to the main package, when exporting them and placing the address in the code, the slash are in this way "/" and that way is also in the terminal, but the address in the directory has the slash inverted "\" then I get an error when compiling it, what could I do in that case? in the image you can see how is the address in the file explorer, as it is in the terminal and the error that throws me, thank you very much

    
asked by Lyon Developer 23.06.2018 в 21:41
source

1 answer

0

As you can see in the code, the package is part of the project and the best way to reference it is in a relative way, in this way as I show you

import "./Saludar"
    
answered by 01.10.2018 в 16:26