Tutorials
Golang : Fix go-cron set time not working issue
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 : PGX CopyFrom to insert rows into Postgres database
Here is an example of how to use PGX's CopyFrom function to insert rows into Postgres database. The HScodes table….... read more
Golang : Switch Redis database redis.NewClient
Problem : Your default Redis connection is using database 0 and you want to get some keys from different Redis….... read more
Golang : Trim everything onward after a word
Putting this simple example here for my own future reference. Basically, the problem that I'm trying to solve is to….... read more
Golang : package is not in GOROOT during compilation
Alright, just putting down here for my own future reference, in case of future encounter with this weird error message….... read more
Golang : How to solve "too many .rsrc sections" error?
Problem:
During go build
you encounter this error "too many .rsrc sections" and the compilation process stopped. What's going on?
Golang : Customize scanner.Scanner to treat dash as part of identifier
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 : Experimental emojis or emoticons icons programming language
So, after I published my experimental Jawi programming language code on Facebook, someone asked me if it is possible….... read more
Golang : Experimental Jawi programming language
Alright, today is Sunday and I got some free time to spare. So, I used my free time to build….... read more
Golang : How to check if a website is served via HTTPS
Just a short program to check if a website has redirect to HTTPS(SSL) or not. What this program does is….... read more
Golang : Replace a parameter's value inside a configuration file example
Alright, putting this here for my own future reference. In this tutorial, we will explore how to read in a….... read more
Golang : How to remove certain lines from a file
Alright, here is a simple tutorial on how to remove certain lines of data from a file. There are times….... read more
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