fixups in the tutorial

also add a section about compiling programs because some found it surprising not to have one

R=rsc
CC=go-dev
http://go/go-review/1018011
This commit is contained in:
Rob Pike 2009-11-01 20:47:03 -08:00
parent dde666dab5
commit 83f0b718ed
7 changed files with 135 additions and 74 deletions

View file

@ -29,8 +29,8 @@ func strings() {
type day struct {
num int;
short_name string;
long_name string;
shortName string;
longName string;
}
type dayArray struct {
@ -56,7 +56,7 @@ func days() {
panic()
}
for _, d := range data {
fmt.Printf("%s ", d.long_name)
fmt.Printf("%s ", d.longName)
}
fmt.Printf("\n")
}