From a1c71d9ba54f9f92224bee54ec74818c8c938dd8 Mon Sep 17 00:00:00 2001 From: hackbard Date: Thu, 2 Oct 2014 00:29:55 +0200 Subject: [PATCH 1/1] added initial hello world go code --- hello/hello.go | 13 +++++++++++++ world/announce.go | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 hello/hello.go create mode 100644 world/announce.go diff --git a/hello/hello.go b/hello/hello.go new file mode 100644 index 0000000..e455c41 --- /dev/null +++ b/hello/hello.go @@ -0,0 +1,13 @@ +package main + +import ( + "fmt" + "hackdaworld.org/hackbard/go-intro/world" + "time" +) + +func main() { + fmt.Printf("Hello, %s", world.Announce()) + fmt.Printf(" at %s.\n", time.Now()) +} + diff --git a/world/announce.go b/world/announce.go new file mode 100644 index 0000000..79071b8 --- /dev/null +++ b/world/announce.go @@ -0,0 +1,6 @@ +package world + +func Announce() string { + return ("World") +} + -- 2.20.1