Make the name dynamic

This commit is contained in:
Oliver Davies 2022-01-26 13:29:00 +00:00
parent cdfe936ef4
commit 11aa1735e1
2 changed files with 5 additions and 5 deletions

View file

@ -2,10 +2,10 @@ package main
import "fmt"
func Hello() string {
return "Hello, world"
func Hello(name string) string {
return "Hello, " + name
}
func main() {
fmt.Println(Hello())
fmt.Println(Hello("Oliver"))
}