exercism/go/hello-world/hello_world.go
2016-08-23 15:47:19 -05:00

12 lines
204 B
Go

package hello
const testVersion = 2
// HelloWorld takes a string (optionally empty) and says hello to it!
func HelloWorld(s string) string {
if s == "" {
s = "World"
}
return "Hello, " + s + "!"
}