summaryrefslogtreecommitdiff
path: root/go/hello-world/hello_world.go
blob: 590df4ee0b5688240859d566f52975d7226d91ff (plain)
1
2
3
4
5
6
7
8
9
10
11
package hello

const testVersion = 2

// HelloWorld greets the World
func HelloWorld(s string) string {
	if s == "" {
		s = "World"
	}
	return "Hello, " + s + "!"
}