Tutorials
Golang : Fixing Gorilla mux http.FileServer() 404 problem
I'm in the process of developing a web application to handle my landlord to tenants relationships in a better way….... read more
Golang : How to transmit update file to client by HTTP request example
Alright, got a friend here that wants a simple Golang http server that will handle updates to his software. Basically,….... read more
Golang : How to handle file size larger than available memory panic issue
Problem:
You are trying to convert create a slice with a size of a very large file. The file size….... read more
Golang : How to calculate the distance between two coordinates using Haversine formula
I need to develop a service that calculate the distances of my current location to several points nearby. Each of….... read more
Golang : How to setup a disk space used monitoring service with Telegram bot
Ok, writing this simple example for a friend. She wants to create a simple Telegram notification/alert for her company's system….... read more
Golang : Mapping Iban to Dunging alphabets
For this tutorial, we will learn how to map Iban(Sea Dayak) language to the Dunging alphabets. According to this .... read more
Golang : Get Hokkien(福建话)/Min-nan(閩南語) Pronounciations
I built this tool for my own use and use it to teach my kids Hokkien a.k.a Min-nan language. At….... read more
Golang : Scramble and unscramble text message by randomly replacing words
For this tutorial, we will learn how to make a text string unreadable by replacing some of the words inside….... read more
Golang : Roll the dice example
Just a simple example on how to simulate dice rolling. Useful in situation where you need to use random single….... read more
Golang : Configure Apache and NGINX to access your Go service example
Recently I developed two services that allows translation of Bahasa Malaysia in Roman alphabets to Jawi(calligraphy form) and .... read more
Golang : Simple Jawi(Yawi) to Rumi(Latin/Romanize) converter
A simple example on how to use Golang's map to build a Jawi(Malays in Arabic script) to Rumi translation dictionary.….... read more
Golang : Markov chains to predict probability of next state example
Putting these two Golang codes here for my own future reference. The codes are adapted from the DataCamp's Markov….... read more
Golang : How to check if a string with spaces in between is numeric?
Ok, I need a function that will determine if an input string is indeed numeric or not. The "standard way"
….... read more
Golang : Detect number of active displays and the display's resolution
There are times when we need to find out the number of active displays and their resolution. The following code….... read more
Golang : Translate language with language package example
Just a simple example on how to use the language
package to do language translation. Not a google translate type….... read more
Golang : Human readable time elapsed format such as 5 days ago
Problem:
You need to convert a date time stamp such as this 02 March 1992 10:10:50
into a human readable….... read more
Golang : Gargish-English language translator
Another just for fun example where I get to translate English text into Gargoyle's language - Gargish. I first got….... read more
Golang : Grab news article text and use NLP to get each paragraph's sentences
This tutorial is a slight improvement over the previous tutorial which uses prose
natural language processing library to get….... read more