mirror of
https://github.com/golang/go
synced 2024-11-23 19:20:03 -07:00
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:
parent
31d7efd4d2
commit
6990bc124f
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user