First
This commit is contained in:
commit
ecc9101efb
|
|
@ -0,0 +1,3 @@
|
|||
module cor.cherished.me/gt/andrew/golang-greetings
|
||||
|
||||
go 1.18
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue