diff options
Diffstat (limited to 'doc/progs/printf.go')
-rw-r--r-- | doc/progs/printf.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/progs/printf.go b/doc/progs/printf.go new file mode 100644 index 000000000..be1ac9731 --- /dev/null +++ b/doc/progs/printf.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 "fmt" + +func main() { + fmt.printf("hello, %s\n", "world"); +} |