From 7d1717f8f6d122e766c175c87f615a4af3c7a15b Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Wed, 10 Sep 2008 17:11:04 -0700 Subject: growing the tutorial R=gri OCL=15115 CL=15115 --- doc/progs/helloworld2.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 doc/progs/helloworld2.go (limited to 'doc/progs/helloworld2.go') 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"); +} -- cgit v1.2.3