Tutorials

golang.pngGolang : Fix go-cron set time not working issue

12th October 2022

Problem :

You followed the go-cron example at https://pkg.go.dev/github.com/go-co-op/gocron#section-readme but later on found out that the scheduled task….... read more



golang.pngGolang : PGX CopyFrom to insert rows into Postgres database

5th September 2022

Here is an example of how to use PGX's CopyFrom function to insert rows into Postgres database. The HScodes table….... read more



golang.pngGolang : Switch Redis database redis.NewClient

5th September 2022

Problem : Your default Redis connection is using database 0 and you want to get some keys from different Redis….... read more



golang.pngGolang : Trim everything onward after a word

29th April 2021

Putting this simple example here for my own future reference. Basically, the problem that I'm trying to solve is to….... read more



golang.pngGolang : package is not in GOROOT during compilation

13th November 2020

Alright, just putting down here for my own future reference, in case of future encounter with this weird error message….... read more



golang.pngGolang : How to solve "too many .rsrc sections" error?

17th October 2020

Problem:

During go build you encounter this error "too many .rsrc sections" and the compilation process stopped. What's going on?

.... read more



golang.pngGolang : Customize scanner.Scanner to treat dash as part of identifier

21st July 2020

Putting this down here for my own future reference. Ok, the problem that I'm solving today involved using the text/scanner.... read more



golang.pngGolang : Experimental emojis or emoticons icons programming language

6th July 2020

So, after I published my experimental Jawi programming language code on Facebook, someone asked me if it is possible….... read more



golang.pngGolang : Experimental Jawi programming language

5th July 2020

Alright, today is Sunday and I got some free time to spare. So, I used my free time to build….... read more



golang.pngGolang : How to check if a website is served via HTTPS

20th May 2020

Just a short program to check if a website has redirect to HTTPS(SSL) or not. What this program does is….... read more



golang.pngGolang : Replace a parameter's value inside a configuration file example

18th May 2020

Alright, putting this here for my own future reference. In this tutorial, we will explore how to read in a….... read more



golang.pngGolang : How to remove certain lines from a file

8th April 2020

Alright, here is a simple tutorial on how to remove certain lines of data from a file. There are times….... read more



golang.pngGolang : How to search a list of records or data structures

4th March 2020

Got a newbie that asked me how to search a list of records(data structures) for specific item and below is….... read more



golang.pngGolang : How to extract video or image files from html source code

26th February 2020

There are times when I need to download a certain video that I watched using browser and I need to….... read more



golang.pngGolang : How to fix html/template : "somefile" is undefined error?

10th February 2020

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



golang.pngGolang : What fmt.Println() can do and println() cannot do

3rd February 2020

A lot of rookies got confused on why their program is not working as intended when using println() function. New….... read more



golang.pngGolang : How to find out similarity between two strings with Jaro-Winkler Distance?

30th January 2020

There are times when we need to detect if a paragraph or an article has a pattern of using multiple….... read more



golang.pngGolang : How to capture return values from goroutines?

29th January 2020

Got a question asked by a newbie on Facebook yesterday. Her question was how to capture the return values generated….... read more



Advertisement