git@cosmocr.at/demo.git · summary refs
add exclamation to the greeting
commit 6697bce118236cb972654a9f75e066297595d806
Cosmo <git@cosmocr.at> · 2026-06-30 07:48 -0400
parent 9145c44a
main.go
// Command hello greets the world.
package main
import "fmt"
func main() {
- fmt.Println(greeting("world"))
+ fmt.Println(greeting("world") + "!")
}
func greeting(who string) string {
return "hello, " + who
}