• Ugorji Nwoke's avatar
    text/template: exec should accept interface value as valid. · 4f7c33cd
    Ugorji Nwoke authored
    Currently, if you pass some data to a template as an interface (e.g. interface{})
    and extract that value that value as a parameter for a function, it fails, saying
    wrong type.
    
    This is because it is only looking at the interface type, not the interface content.
    
    This CL uses the underlying content as the parameter to the func.
    
    Fixes #3642.
    
    R=golang-dev, r, r
    CC=golang-dev
    https://golang.org/cl/6218052
    4f7c33cd
Name
Last commit
Last update
..
parse Loading commit data...
testdata Loading commit data...
doc.go Loading commit data...
example_test.go Loading commit data...
examplefiles_test.go Loading commit data...
examplefunc_test.go Loading commit data...
exec.go Loading commit data...
exec_test.go Loading commit data...
funcs.go Loading commit data...
helper.go Loading commit data...
multi_test.go Loading commit data...
template.go Loading commit data...