1.新建文件夹greeting并创建一个greeting.go文件
package greeting
func Greeting(name string) string {
hello := name + " " + "welcom to golang"
return hello
}
2.在main方法中导入greeting模块进行传参,声明一个message接收模块返回的参数并打印
package greeting
func Greeting(name string) string {
hello := name + " " + "welcom to golang"
return hello
}