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
There also is another template engine named gomplate that can do that directly from its syntax. Anyway, I guess that switching the golang built-in template engine for a new one (and add a new dependency) is not worthy for such a small request.
The text was updated successfully, but these errors were encountered:
StayPirate
changed the title
Accessing enviromental variables from the go template
Access enviromental variables from the go template engine
May 4, 2022
skx
added a commit
that referenced
this issue
May 4, 2022
It would be nice if would be possible to use ENV variables within the template file. Something like:
I'm not a golang developer, but I did some research and I found the following snippet which may help here:
There also is another template engine named gomplate that can do that directly from its syntax. Anyway, I guess that switching the golang built-in template engine for a new one (and add a new dependency) is not worthy for such a small request.
The text was updated successfully, but these errors were encountered: