greetings/greetings.go

11 lines
250 B
Go
Raw Normal View History

2024-09-26 15:34:35 +02:00
package greetings
import "fmt"
// Hello returns a greeting for the named person.
func Hello(name string) string {
// Return a greeting that embeds the name in a message.
message := fmt.Sprintf("Hi, %v. Welcome!", name)
return message
}