[21] Results

Golang : How to call function inside template with template.FuncMap

golang html-template funcmap call-function wordwrap text-template

Alright, just a simple tutorial on how to call your own function inside HTML template. For this example, we will….... read more


Golang : Interpolating or substituting variables in string examples

golang interpolate substitute text-template variables string

For this quick tutorial, we will explore how to interpolate(substitute) actual data into variables inside a string. Will keep these….... read more


Golang : How to use if, eq and print properly in html template

golang if eq print html-template text-template...

Alright, just a simple problem that took me a while to get it right. Putting the solution down here for….... read more


Golang : Auto-generate reply email with text/template package

golang auto-reply-email text-template artificial-intelligence

Problem :

You have customers that ask question via email that sometimes bordering repetitive questioning or simply refused to read….... read more


Golang : How to pass map to html template and access the map's elements

golang index panic-assignment-to-entry-in-nil-map html-text-template slice-array

For this tutorial, we will learn how to pass a map to text or html template and learn how to….... read more


Grep : How to grep for strings inside binary data

grep binary text string

Grep or Global Regular Expression Print is a very useful Unix/Linux command that I've practically used everyday. So, recently a….... read more


Golang : How to fix html/template : "somefile" is undefined error?

golang html-template undefined-error parse-html

One of the most common mistakes when using html/template package ExecuteTemplate() function is forgetting to parse the HTML file first.... read more


Golang : Executing and evaluating nested loop in html template

golang html-template nested-loops range cant-evaluate-field

Alright, just a minor problem and putting the solution here on how to fix this problem for future reference. Basically,….... read more


Advertisement