Please read "How to write a transition code . "
Do not use /src in GOPATH . Packages are located in $GOPATH/src .
For build or install you need to have your files in the package directory.
For go run you need to specify all the files as an argument:
go run main.go employee.go
But you should almost always use go install , or go build (and preferably the first, since go build is confusing when working with non-core packages)
JimB Jan 26 '15 at 15:46 2015-01-26 15:46
source share