1、代码
package main
import "fmt"
func MyFun() (name string) {
name = "MyFun"
return
}
func main() {
funName := MyFun()
fmt.Println(funName)
}
package main
import "fmt"
func MyFun() (name string) {
name = "MyFun"
return
}
func main() {
funName := MyFun()
fmt.Println(funName)
}