I am learning Go language out of my own interest . I come from a typical OO programming .
I am bit kind of stuck in using a method present in one file from another.
So , D:\lib\pac\abc.go
has a method called
func dosomething()
{
}
Now , I have created one more file called def.go in the same location
In this file I am writing to function to call abc.go, but I am getting an exception called "undefined:dosomething" when I run this file using $ go test
func defFunc()
{
//call dosomething
}
Also both these files are in the same package. Any hint on this issue?