undefined: NewEmployee
这是源代码:
main.go:
package main func main() { emp := NewEmployee() }
employee.go:
package main type Employee struct { name string age int } func NewEmployee() *Employee { p := &Employee{} return p } func PrintEmployee (p *Employee) { return "Hello World!" }
提前致谢