15 lines
189 B
Go
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"))
|
|
}
|