go/src/pkg
Russ Cox bec40ba516 json: preserve field name case by default
This matches the old JSON package behavior.
All lowercase names are not as standard as I believed,
and it seems less surprising to need to write

	type T struct { Field string "field" }

to get lower case (behavior after this CL) than it does to need
to write

	type T struct { Field string "Field" }

to preserve the case (behavior before this CL).

Also test and  fix unmarshal into non-nil interface
value or pointer.

Fixes #744.

R=r
CC=golang-dev
https://golang.org/cl/1013041
2010-04-27 10:24:00 -07:00
..
archive/tar FileInfo: regularize the types of some fields. 2010-04-22 14:01:33 -07:00
asn1 gofmt: modified algorithm for alignment of multi-line composite/list entries 2010-03-04 17:37:15 -08:00
big big: Create type nat 2010-04-22 16:57:29 -07:00
bignum Corrected broken assertion. 2010-02-01 16:14:22 -08:00
bufio single argument panic 2010-03-30 10:34:57 -07:00
bytes bytes: add Next method to Buffer, simplify Read. 2010-04-26 10:02:01 -07:00
cmath cmath: use ** for exponentiation in comments 2010-04-09 14:37:26 -07:00
compress gofmt: experiment: align values in map composites where possible 2010-03-02 13:46:51 -08:00
container vector: Don't always regenerate {int,string}vector.go 2010-04-23 00:43:59 +10:00
crypto crypto/tls: simpler implementation of record layer 2010-04-26 22:19:04 -07:00
debug debug/elf: Fix doc comments 2010-04-11 14:49:44 -07:00
ebnf strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
encoding encoding/base64: fix typo in comment 2010-03-08 18:12:25 -08:00
exec exec: add dir argument to Run. 2010-02-18 18:32:33 -08:00
exp exp/eval: Always read float literals as base 10 2010-04-15 19:53:35 -07:00
expvar json: Marshal, Unmarshal using new scanner 2010-04-21 16:40:53 -07:00
flag flag: eliminate unnecessary structs 2010-04-15 15:25:46 -07:00
fmt fmt format verb %b bug 2010-04-12 10:20:06 -07:00
go go/ast: Update comment to mention imaginary literals 2010-04-15 18:06:22 -07:00
gob simplify various code using new map index rule 2010-03-30 10:51:11 -07:00
hash hash/crc64: new package implementing 64-bit CRC 2010-03-12 17:38:18 -08:00
http http: fix documentation example 2010-04-05 22:55:05 -07:00
image image/jpeg: fix typos 2010-03-15 22:10:47 -07:00
io pipe: implementation #3; this time for sure! 2010-04-27 10:17:17 -07:00
json json: preserve field name case by default 2010-04-27 10:24:00 -07:00
log runtime: fix Caller 2010-04-05 23:36:37 -07:00
math math: more special cases for signed zero 2010-04-26 22:44:39 -07:00
mime simplify various code using new map index rule 2010-03-30 10:51:11 -07:00
net net: introduce net.Error interface 2010-04-26 22:15:25 -07:00
netchan netchan: allow client to send as well as receive. 2010-04-13 13:49:42 -07:00
nntp nntp: new package, NNTP client 2010-04-04 23:23:48 -07:00
once simplify various code using new map index rule 2010-03-30 10:51:11 -07:00
os os, syscall: more mingw 2010-04-26 23:17:14 -07:00
patch strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
path rename os.Dir to os.FileInfo 2010-04-09 11:36:40 -07:00
rand gofmt: more consistent formatting of const/var decls 2010-03-16 16:45:54 -07:00
reflect reflect: implement Set(nil), SetValue(nil) for PtrValue and MapValue 2010-04-20 17:02:08 -07:00
regexp regexp: allow escaping of any punctuation 2010-04-26 10:00:18 -07:00
rpc rpc: Add Close() method to rpc.Client to allow graceful connection teardown. 2010-04-16 16:17:47 -07:00
runtime runtime: closures, defer bug fix for Native Client 2010-04-22 17:52:22 -07:00
scanner scanner: implement Peek() to look at the next char w/o advancing 2010-04-14 21:33:34 -07:00
sort sort: fix comment typo 2010-02-02 23:01:21 -08:00
strconv single argument panic 2010-03-30 10:34:57 -07:00
strings strings: add ReadRune to Reader 2010-04-20 22:18:26 -07:00
sync sync: allow to work on armv5 2010-02-18 15:37:16 -08:00
syscall syscall: fix mingw build 2010-04-26 23:47:53 -07:00
syslog syslog: increase test timeout from 10ms to 100ms 2010-03-11 09:46:16 -08:00
tabwriter tabwriter: use panic/recover to handle errors 2010-03-31 16:01:22 -07:00
template template: fix handling of pointer inside interface 2010-04-26 10:01:13 -07:00
testing testing: update documentation to match current coding style 2010-04-11 10:18:49 -07:00
time time: remove incorrect time.ISO8601 and add time.RFC3339 2010-04-27 00:05:24 -07:00
unicode Unicode: fix stupid typo in comment. 2010-03-30 18:33:06 -07:00
unsafe runtime: introduce unsafe.New and unsafe.NewArray 2009-12-07 15:51:58 -08:00
utf8 strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
utf16 utf16: add DecodeRune, EncodeRune 2010-04-21 16:27:18 -07:00
websocket single argument panic on non-darwin and in comments 2010-03-30 13:15:16 -07:00
xml xml: fix innerxml handling of & escapes 2010-04-26 10:01:33 -07:00
Makefile runtime: closures, defer bug fix for Native Client 2010-04-22 17:52:22 -07:00
deps.bash fix deps.bash. \t does not mean tab in some seds. 2010-04-06 10:53:48 -07:00