I am new to Go, and I have prepared my work space according to the How to write go code
But now I am confused how go
tool gets the path of packages like fmt
, strings
or my own packages.
As in C language we provide the path of header file by -I
and linker path by -L
but in Go we have given two paths GOHOME
and GOPATH
and both paths are of bin directories none of them specify the package path.