Tutorials
Golang : How to search a list of records or data structures
Got a newbie that asked me how to search a list of records(data structures) for specific item and below is….... read more
Golang : How to extract video or image files from html source code
There are times when I need to download a certain video that I watched using browser and I need to….... read more
Golang : How to fix html/template : "somefile" is undefined error?
One of the most common mistakes when using html/template
package ExecuteTemplate()
function is forgetting to parse the HTML file first….... read more
Golang : What fmt.Println() can do and println() cannot do
A lot of rookies got confused on why their program is not working as intended when using println()
function. New….... read more
Golang : How to find out similarity between two strings with Jaro-Winkler Distance?
There are times when we need to detect if a paragraph or an article has a pattern of using multiple….... read more
Golang : How to capture return values from goroutines?
Got a question asked by a newbie on Facebook yesterday. Her question was how to capture the return values generated….... read more
Golang : How to write backslash in string?
Alright, below is a simple tutorial on how to write backslash in Golang. Nothing special, just writing it down here….... read more
Golang : Experimenting with the Rejang script
Someone informed me that I should take a look at the Rejang script(not to be confused with the .... read more
Golang : Example of how to detect which type of script a word belongs to
In one of my projects, I need to detect if a word that cannot be translated is of Arabic or….... read more
Golang : Converting individual Jawi alphabet to Rumi(Romanized) alphabet example
Recently I've been busy enhancing my Jawi to Rumi converter and I found out that some Jawi words cannot….... read more
Golang : How to detect if a sentence ends with a punctuation?
Problem : I need to detect if a line ends with a punctuation mark or not. How to do that?
….... read moreLinux : How to fix Brother HL-1110 printing blank page problem
Alright, just a minor problem and putting down the solution here on how to fix the issue of Brother HL-1110….... read more
Golang : How to pass map to html template and access the map's elements
For this tutorial, we will learn how to pass a map to text or html template and learn how to….... read more
Golang : Executing and evaluating nested loop in html template
Alright, just a minor problem and putting the solution here on how to fix this problem for future reference. Basically,….... read more
Golang : How to call function inside template with template.FuncMap
Alright, just a simple tutorial on how to call your own function inside HTML template. For this example, we will….... read more
Golang : Pagination with go-paginator configuration example
Here is an example that you can use as reference on how to configure go-paginator properly. The snippets below….... read more
Golang & Javascript : How to save cropped image to file on server
While building my web application to manage my tenants and rental properties, I need a solution to capture the cropped….... read more
Golang : How to use if, eq and print properly in html template
Alright, just a simple problem that took me a while to get it right. Putting the solution down here for….... read more