Hi everyone on Golang group,
I'm having difficulty with some simple code, and appreciate if someone can point out a solution.
There is a simple main package that looks like this:
hello.go
main.go
hello.go:
package main
import "fmt"
func SayHello() {
fmt.Println("Hello")
}
main.go
package main
func main() {
SayHello()
}
Trying to run main.go is producing an error:
Why is this error happening? Is my packaging done wrong?