From 509c5063d66e8bbef4ec1def1c99c318be51aceb Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 25 Aug 2016 03:13:39 +0200 Subject: Initial import --- go/hello-world/hello_world.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 go/hello-world/hello_world.go (limited to 'go/hello-world/hello_world.go') diff --git a/go/hello-world/hello_world.go b/go/hello-world/hello_world.go new file mode 100644 index 0000000..590df4e --- /dev/null +++ b/go/hello-world/hello_world.go @@ -0,0 +1,11 @@ +package hello + +const testVersion = 2 + +// HelloWorld greets the World +func HelloWorld(s string) string { + if s == "" { + s = "World" + } + return "Hello, " + s + "!" +} -- cgit v1.2.3