On Wed, May 2, 2018 at 7:32 PM, Burak Serdar  wrote:

I think passing in a map is the easiest solution.


Agree, however, I'm trying to provide a general library that take arbitrary
data just like the text Template does, so imposing this will make my old
code broken.

If all you need is to pass ENV, you can make it a function using
> Template.Funcs(), and call ENV to get env values.
>

Ah, that's a brilliant idea. Given all constrains and difficulties I'm
facing, I think this is the cleanest solution.

Thanks a lot!

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to