Commit 6990bc12 authored by Rob Pike's avatar Rob Pike

doc/progs: make sure all programs compile and run

Fixes #1455.

R=rsc
CC=golang-dev
https://golang.org/cl/4079055
parent 31d7efd4
......@@ -29,9 +29,8 @@ for i in \
sieve.go \
sieve1.go \
server1.go \
strings.go \
; do
BASE=$(basename $i .go)
$GC $i
done
......@@ -58,6 +57,7 @@ testit helloworld "" "Hello, world; or Καλημέρα κόσμε; or こんに
testit helloworld3 "" "hello, world can't open file; err=no such file or directory"
testit echo "hello, world" "hello, world"
testit sum "" "6"
testit strings "" ""
alphabet=abcdefghijklmnopqrstuvwxyz
rot13=nopqrstuvwxyzabcdefghijklm
......
......@@ -4,7 +4,6 @@
package main
import "fmt"
import "os"
func main() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment