1
0
mirror of https://github.com/golang/go synced 2024-11-21 17:44:40 -07:00
go/doc/progs
Russ Cox 60ce95d7a1 code changes for array conversion.
as a reminder, the old conversion
was that you could write

	var arr [10]byte;
	var slice []byte;
	slice = arr;

but now you have to write

	slice = &arr;

the change eliminates an implicit &, so that
the only implicit &s left are in the . operator
and in string(arr).

also, removed utf8.EncodeRuneToString
in favor of string(rune).

R=r
DELTA=83  (1 added, 23 deleted, 59 changed)
OCL=27531
CL=27534
2009-04-15 20:27:45 -07:00
..
cat_rot13.go code changes for array conversion. 2009-04-15 20:27:45 -07:00
cat.go code changes for array conversion. 2009-04-15 20:27:45 -07:00
echo.go casify tutorial examples 2009-01-15 17:54:07 -08:00
file.go change the tutorial to use File, file rather than FD, fd. 2009-03-16 22:53:23 -07:00
helloworld3.go remove print() from the tutorial, generating a little clumsiness around "import" 2009-03-18 14:09:16 -07:00
helloworld.go remove print() from the tutorial, generating a little clumsiness around "import" 2009-03-18 14:09:16 -07:00
print_string.go Automated g4 rollback of changelist 25024, 2009-03-03 08:39:12 -08:00
print.go Automated g4 rollback of changelist 25024, 2009-03-03 08:39:12 -08:00
run remove print() from the tutorial, generating a little clumsiness around "import" 2009-03-18 14:09:16 -07:00
server1.go remove print() from the tutorial, generating a little clumsiness around "import" 2009-03-18 14:09:16 -07:00
server.go remove print() from the tutorial, generating a little clumsiness around "import" 2009-03-18 14:09:16 -07:00
sieve1.go remove print() from the tutorial, generating a little clumsiness around "import" 2009-03-18 14:09:16 -07:00
sieve.go remove print() from the tutorial, generating a little clumsiness around "import" 2009-03-18 14:09:16 -07:00
sort.go delete export 2009-01-20 14:40:40 -08:00
sortmain.go remove print() from the tutorial, generating a little clumsiness around "import" 2009-03-18 14:09:16 -07:00
strings.go remove print() from the tutorial, generating a little clumsiness around "import" 2009-03-18 14:09:16 -07:00
sum.go code changes for array conversion. 2009-04-15 20:27:45 -07:00