doc/progs: make sure all programs compile and run

Fixes #1455.

R=rsc
CC=golang-dev
https://golang.org/cl/4079055
This commit is contained in:
Rob Pike 2011-01-31 14:41:36 -08:00
parent 31d7efd4d2
commit 6990bc124f
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -4,7 +4,6 @@
package main
import "fmt"
import "os"
func main() {