diff --git a/greetings/greetings.go b/greetings/greetings.go new file mode 100644 index 0000000000000000000000000000000000000000..2a0fe54a1f9ce1b6570c9c8398603cfb1aaec3cf --- /dev/null +++ b/greetings/greetings.go @@ -0,0 +1,10 @@ +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 +}