summaryrefslogtreecommitdiff
path: root/doc/progs/helloworld2.go
diff options
context:
space:
mode:
Diffstat (limited to 'doc/progs/helloworld2.go')
-rw-r--r--doc/progs/helloworld2.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/progs/helloworld2.go b/doc/progs/helloworld2.go
new file mode 100644
index 000000000..f2b4cae70
--- /dev/null
+++ b/doc/progs/helloworld2.go
@@ -0,0 +1,11 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package main
+
+import OS "os" // this package contains features for basic I/O
+
+func main() {
+ OS.Stdout.WriteString("Hello, world; or Καλημέρα κόσμε; or こんにちは 世界\n");
+}