Top "Go-templates" questions

Go language supports built-in template functionality.

Go template comparison operators on missing map key

I am unable to find any documentation regarding what the type of the return value is when attempting key into …

dictionary go go-templates
Why am I seeing ZgotmplZ in my Go HTML template output?

When I'm calling a Go template function to output HTML, it displays ZgotmplZ. Sample code: http://play.golang.org/p/…

go go-templates
Compare two variables inside Go template

In the data I pass to my template I have the two variables Type and Res.Type I want to …

html loops go go-templates
<.Chart.Name>: can't evaluate field Chart in type string

When I deploy the following I get this error: {{- if .Values.front.ingress.enabled -}} {{- $fullName := include "marketplace.…

kubernetes-helm go-templates
How to use templates in Go Gin for dynamic content

I have a simple Go / Gin web app. I need to put some dynamic content in html template. For e.…

go go-templates go-gin
How to control indent after including file content in Helm configMap?

I'm setting up a ConfigMap for my Helm chart. As per good practice, I want to include non-yaml resources through …

kubernetes kubernetes-helm go-templates
range within range golang template

How to access range within range in Go templates? Template: {{range .Resume.Skills}} {{.Name}} {{.Level}} {{range $item, $key := .Keywords}} {{$key}} {{$…

go revel go-templates