You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In https://go-review.googlesource.com/#/c/14593/, to address #12033, @robpike added a new function, func IsTrue(val reflect.Value) (truth, ok bool) to text/template. That's the first use of reflect in this package's API, thus pulling in ~16 KB of new package export data.
An alternative is to change this new function to be func IsTrue(val interface{}) (truth, ok bool), and do the reflection inside the text/template package.
After a brief discussion with @adg, he asked me to file an issue to track this.
The text was updated successfully, but these errors were encountered:
In https://go-review.googlesource.com/#/c/14593/, to address #12033, @robpike added a new function,
func IsTrue(val reflect.Value) (truth, ok bool)
totext/template
. That's the first use ofreflect
in this package's API, thus pulling in ~16 KB of new package export data.An alternative is to change this new function to be
func IsTrue(val interface{}) (truth, ok bool)
, and do the reflection inside the text/template package.After a brief discussion with @adg, he asked me to file an issue to track this.
The text was updated successfully, but these errors were encountered: