Commits

Ian Lewis  committed bef4c16

Added go hello world program

  • Participants
  • Parent commits 20ead67

Comments (0)

Files changed (3)

 
 syntax: regexp
 .*\#.*\#$ 
+^go/hello_world/hello_world$
+^go/.*\.out
+^go/.*\.8
+^go/.*\.6

File go/hello_world/Makefile

+hello_world: hello_world.8
+	8l -o hello_world hello_world.8
+
+hello_world.8: hello_world.go
+	8g hello_world.go

File go/hello_world/hello_world.go

+package main
+
+import fmt "fmt"
+import "strings"
+
+func main() {
+    hello_world := "Hello World!\n"
+
+    fmt.Printf(strings.Replace(hello_world, "World", "世界", -1))
+}