Initial commit: Go project with greet function and CLI

This commit is contained in:
Gabriel Radureau
2026-04-03 12:20:55 +02:00
commit 3efc1992d5
7 changed files with 201 additions and 0 deletions

10
pkg/greet/greet.go Normal file
View File

@@ -0,0 +1,10 @@
package greet
// Greet returns a greeting message for the given name.
// If name is empty, it defaults to "world".
func Greet(name string) string {
if name == "" {
return "Hello world!"
}
return "Hello " + name + "!"
}