Suppose we have multiple go files, for example greet.go, bye.go and
main.go in same directory and all have same package name. The main.go
greet() function from greet.go, similary greet.go is
bye() from bye.go.
In this case how to run this, so that it successfully call functions from other go files.
go run *.go or
go build will generate
binary with name similar to the directory that contains files.
Program throws an error
Undefined <Func-name> if only run
go run main.go.