go-hello-world2/main.go
2024-03-31 13:53:48 +03:30

15 lines
189 B
Go

// main.go
package main
import "fmt"
// Greet returns a greeting message.
func Greet(name string) string {
return "Hello, " + name + "!"
}
func main() {
fmt.Println(Greet("World"))
}