Check for exported fields in embedded structs
authorTatsushi Demachi <tdemachi@gmail.com>
Thu, 28 Jan 2016 10:27:35 +0000 (19:27 +0900)
committerTatsushi Demachi <tdemachi@gmail.com>
Thu, 28 Jan 2016 10:27:35 +0000 (19:27 +0900)
commit3b3e771d613b3d8b9c54bc8b42e4bae7ba0bbb68
tree274c81d7ff0c781a87f49460aef9ccb5e9b979ca
parent12876ec991982de27773d127e2030b1eeb2826b2
Check for exported fields in embedded structs

This fixes a exported field check condition in a way described at Go
issue https://golang.org/issue/12367

According to the issue comments, this fix should be safe under Go 1.6.
tpl/template_funcs.go