• Ian Lance Taylor's avatar
    reflect: remove struct tags from unexported types · 997d7a18
    Ian Lance Taylor authored
    Before CL 4281055 in 2011, the reflect package was quite different.
    rtype, then called commonType, was embedded in exported structs with
    names like StructType. In order to avoid accidental conversions
    between pointers to these public structs, which sometimes had
    identical fields, the embedded commonType fields were tagged.
    
    In CL 4281055 the formerly public structs were unexported, and all
    access was done through the Type interface. At that point the field
    tags in the reflect structs were no longer useful.
    
    In Go 1.8 the language was changed to ignore struct field tags when
    converting between types. This made the field tags in the reflect
    structs doubly useless.
    
    This CL simply removes them.
    
    Fixes #20914
    
    Change-Id: I9af4d6d0709276a91a6b6ee5323cad9dcd0cd0a0
    Reviewed-on: https://go-review.googlesource.com/121475
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    997d7a18
Name
Last commit
Last update
..
all_test.go Loading commit data...
asm_386.s Loading commit data...
asm_amd64.s Loading commit data...
asm_amd64p32.s Loading commit data...
asm_arm.s Loading commit data...
asm_arm64.s Loading commit data...
asm_mips64x.s Loading commit data...
asm_mipsx.s Loading commit data...
asm_ppc64x.s Loading commit data...
asm_s390x.s Loading commit data...
asm_wasm.s Loading commit data...
deepequal.go Loading commit data...
example_test.go Loading commit data...
export_test.go Loading commit data...
makefunc.go Loading commit data...
set_test.go Loading commit data...
swapper.go Loading commit data...
tostring_test.go Loading commit data...
type.go Loading commit data...
value.go Loading commit data...