summaryrefslogtreecommitdiff
path: root/src/pkg/reflect/value.go
AgeCommit message (Collapse)AuthorFilesLines
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-942/+1187
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý1-43/+115
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-8/+0
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-20/+75
2010-06-21reflect: add Type.Bits method, add tags to prohibit conversionsRuss Cox1-90/+38
gob: substitute slice for map R=r CC=golang-dev http://codereview.appspot.com/1699045
2010-06-20reflect: add Kind, remove Int8Type, Int8Value, etc.Russ Cox1-238/+125
update other code to match. R=r CC=golang-dev http://codereview.appspot.com/1680044
2010-04-20reflect: implement Set(nil), SetValue(nil) for PtrValue and MapValueRuss Cox1-2/+22
R=r CC=golang-dev http://codereview.appspot.com/823048
2010-04-18reflect: add FieldByNameFuncRaif S. Naffah1-0/+10
xml: add support for XML marshalling embedded structs. R=rsc CC=golang-dev http://codereview.appspot.com/837042 Committer: Russ Cox <rsc@golang.org>
2010-03-30single argument panicRuss Cox1-2/+2
note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev http://codereview.appspot.com/850041
2010-03-24delete all uses of panicln by rewriting them using panic or,Rob Pike1-4/+4
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
2010-03-10reflect: typo in commentDean Prichard1-1/+1
R=golang-dev, adg CC=golang-dev http://codereview.appspot.com/369041 Committer: Andrew Gerrand <adg@golang.org>
2010-03-056g complex type usableKen Thompson1-62/+62
8g and 5g have stubs to ignore complex R=rsc CC=golang-dev http://codereview.appspot.com/257042
2010-03-02more on type complex.Ken Thompson1-0/+63
getting close. R=rsc CC=golang-dev http://codereview.appspot.com/224105
2010-03-02gofmt: experiment: align values in map composites where possibleRobert Griesemer1-2/+2
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076
2010-01-29move comment on StringHeader to fix godoc output.Rob Pike1-2/+3
R=rsc, ken2 CC=golang-dev http://codereview.appspot.com/196055
2010-01-28added StringHeader to reflectKen Thompson1-0/+5
R=rsc CC=golang-dev http://codereview.appspot.com/194133
2010-01-25runtime, type switch: eliminate package global name space assumptionRuss Cox1-1/+1
bonus: type switch now detects multiple uses of identical interface types. bonus: interface types are now order-independent, following the spec. R=ken2 CC=golang-dev http://codereview.appspot.com/194053
2010-01-18reflect: fix garbage collection bug in Call.Russ Cox1-5/+9
Fixes issue 476. R=r CC=golang-dev http://codereview.appspot.com/190041
2009-12-23fix up %pRob Pike1-0/+12
- use an interface {Get()} - implement Get for maps, slices - for slices, retrieves the address of the end of the array, which will give the same value for every slice of the same array. R=rsc CC=golang-dev http://codereview.appspot.com/179129
2009-12-151) Change default gofmt default settings forRobert Griesemer1-308/+308
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 4th set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180049
2009-12-07runtime: introduce unsafe.New and unsafe.NewArrayRuss Cox1-18/+9
to provide functionality previously hacked in to reflect and gob. R=r http://codereview.appspot.com/165076
2009-11-19reflect fixesRuss Cox1-1/+4
R=r http://codereview.appspot.com/156104
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-19/+19
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-87/+87
R=rsc, r http://go/go-review/1025029
2009-11-06- application of gofmt with one-line composite literal structs enabledRobert Griesemer1-3/+1
- this CL is dependent on CL 1025008 R=r, rsc http://go/go-review/1025009
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer1-195/+65
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-05gofmt-ify reflectRobert Griesemer1-40/+47
- the single line structs can be fixed in another round R=rsc http://go/go-review/1016052
2009-11-01misc cleanupRuss Cox1-1/+1
R=r http://go/go-review/1016017
2009-10-21Add SetValue(Value) to the Value interface.Adam Langley1-1/+129
R=rsc APPROVED=rsc DELTA=172 (170 added, 0 deleted, 2 changed) OCL=35969 CL=35980
2009-09-15more "declared and not used".Russ Cox1-1/+1
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
2009-09-14fix "declared and not used" errors in non-test code.Russ Cox1-2/+0
R=r DELTA=112 (6 added, 57 deleted, 49 changed) OCL=34610 CL=34610
2009-08-26Restore comment line accidentally dropped in CL 33097.Ian Lance Taylor1-0/+1
R=rsc DELTA=1 (1 added, 0 deleted, 0 changed) OCL=33891 CL=33891
2009-08-26finish ChanValue: Len and Cap.Russ Cox1-0/+12
R=r DELTA=45 (45 added, 0 deleted, 0 changed) OCL=33873 CL=33881
2009-08-26add Close() and Closed() to ChanValueRuss Cox1-0/+14
R=r DELTA=60 (56 added, 3 deleted, 1 changed) OCL=33868 CL=33872
2009-08-12convert low-level (used by testing) packages toRuss Cox1-13/+1
whole-package compilation. new Makefiles, tests now in separate package bytes flag fmt io math once os reflect strconv sync time utf8 delete import "xxx" in package xxx. inside package xxx, xxx is not declared anymore so s/xxx.//g delete file and package level forward declarations. note the new internal_test.go and sync and strconv to provide public access to internals during testing. the installed version of the package omits that file and thus does not open the internals to all clients. R=r OCL=33065 CL=33097
2009-08-10remove unnecessary pkg. referencesRuss Cox1-1/+1
R=r DELTA=95 (0 added, 0 deleted, 95 changed) OCL=33012 CL=33012
2009-08-05- FieldByName lookup through anonymous fieldsRobert Griesemer1-0/+29
- FieldByIndex - changed StructField.Index type from int -> []int - adjustments to reflect clients R=rsc,r DELTA=336 (263 added, 47 deleted, 26 changed) OCL=32731 CL=32802
2009-08-03don't crash printing a nil mapRob Pike1-1/+5
R=rsc DELTA=19 (18 added, 0 deleted, 1 changed) OCL=32656 CL=32670
2009-07-27fix build - broke with uint32 -> int change in reflect SliceHeaderRuss Cox1-5/+5
TBR=r OCL=32225 CL=32225
2009-07-27fix SliceHeader: len and cap are int, not uint32Russ Cox1-2/+2
R=r,iant DELTA=2 (0 added, 0 deleted, 2 changed) OCL=32215 CL=32222
2009-07-10reflection for interface setRuss Cox1-9/+14
rename map access methods to Elem, SetElem. R=r DELTA=95 (66 added, 7 deleted, 22 changed) OCL=31456 CL=31469
2009-07-09reflection for methodsRuss Cox1-19/+95
R=r DELTA=156 (135 added, 8 deleted, 13 changed) OCL=31407 CL=31428
2009-07-08reflection for functionsRuss Cox1-11/+86
add channel send type check (thanks austin). fix type mismatch message. R=r DELTA=241 (225 added, 5 deleted, 11 changed) OCL=31370 CL=31375
2009-07-08reflection for channelsRuss Cox1-4/+53
R=r DELTA=188 (171 added, 6 deleted, 11 changed) OCL=31352 CL=31361
2009-07-08reflection for mapsRuss Cox1-6/+71
R=r DELTA=304 (248 added, 34 deleted, 22 changed) OCL=31345 CL=31347
2009-07-07install new reflect:Russ Cox1-733/+680
rename ntype.go and nvalue.go to type.go and value.go R=r DELTA=4295 (761 added, 2819 deleted, 715 changed) OCL=31238 CL=31276
2009-07-02make a description of the slice header publicRob Pike1-15/+18
R=rsc DELTA=18 (3 added, 0 deleted, 15 changed) OCL=31086 CL=31094
2009-07-01add test, fix bug: structs that differ in theirRuss Cox1-1/+1
first field were not being handled correctly because the visited map did not include the type. R=r OCL=31006 CL=31006
2009-06-25add reflect.Typeof; test for and fix nil interface bug in DeepEqualRuss Cox1-3/+14
R=r DELTA=40 (30 added, 2 deleted, 8 changed) OCL=30742 CL=30753
2009-06-15Fix a proto encoding crasher whereby a nil in a repeated group field would ↵David Symonds1-4/+7
crash the server. Also fix the reflect bug that was exposed by this bug. R=r APPROVED=rsc DELTA=162 (103 added, 32 deleted, 27 changed) OCL=30125 CL=30319