Tutorials
Golang : convert(cast) string to float value
To convert or cast a string to float value, just use the strconv.ParseFloat()
function. Below is the code example to….... read more
Golang : How to read float value from standard input ?
This is a continuation from previous tutorial on how to read integer value from standard input. For this tutorial, we….... read more
Golang : How to read integer value from standard input ?
Reading integer value from standard input in Golang is fairly simple with fmt.Scanf function. The code below demonstrate how to….... read more
Golang : Read a file line by line
Got another newbie to Golang asking me for help today on how to read a file line by line. The….... read more
SSL : How to check if current certificate is sha1 or sha2
Got an email notification today by my SSL certificate provider, highlighting the weaknesses of SHA1 SSL certificate( which is roughly….... read more
PHP : Get client IP address
Knowing who is accessing your web server can be useful for tracking a user's activity. In this tutorial, we will….... read more
CodeIgniter : Import Linkedin data
A while back I had a CodeIgniter project that involved importing Linkedin data. In this tutorial, we will try to….... read more
Golang : Scanf function weird error in Windows
Got a newbie to Golang asking for help in the Golang Facebook group and he is having trouble….... read more
Golang : rune literal not terminated error
Encounter this error message rune literal not terminated
while working on a Golang project recently. Took me a while to….... read more
Golang : Generate random integer or float number
Was helping out a friend last Sunday to finish up his Golang project and encounter a problem where we need….... read more
error: trying to remove "yum", which is protected
Trying to update one of the my VPS today with sudo yum update
command and encounter this funky error message….... read more
Golang : Find smallest number in array
Alright, today I'll just write this simple tutorial on how to find the smallest value in an array. Basically, the….... read more
Golang : Find biggest/largest number in array
Just a quick tutorial on how to find the biggest value in a given array. Nothing fancy, just a simple….... read more
Unmarshal/Load CSV record into struct in Go
This is just a slight variation to the previous go read csv file tutorial. In this tutorial, we….... read more
Golang : How to read CSV file
One way or another, CSV file is going to be part and parcel of a developer life. A programmer will….... read more
Golang : dial tcp: too many colons in address
Encounter this error message Golang : dial tcp: too many colons in address ssl://smtp.googlemail.com:465
while working on the transaction email….... read more
Golang : How to iterate over a []string(array)
Sometimes the easiest thing to do is the hardest thing to remember... like how to iterate through a string array.….... read more
Golang : Set, Get and List environment variables
Environment variables allow Unix programs to store configuration information and the program behaviour maybe altered if the environment variables related….... read more