Tutorials
Golang : Send email and SMTP configuration example
Golang has a SMTP(Simple Mail Transfer Protocol) package that allows developers to send out email in quick and….... read more
Golang : Pipe output from one os.Exec(shell command) to another command
Problem :
You want to execute one shell command with os.Exec() function, wait for it to complete and then pipe….... read more
Golang : Execute function at intervals or after some delay
Problem :
You want to execute functions at intervals - such as polling a remote terminal every 30 seconds or….... read more
Golang : Call a function after some delay(time.Sleep and Tick)
Long time ago when I started learning Turbo Pascal by myself. One of the few functions that I'd learned is….... read more
Golang : Overwrite previous output with count down timer
Just a note for myself on how to create a count down timer and how to overwrite previous output. Very….... read more
Golang : Convert string to array/slice
Just a note for my own self. Hope it will be useful for you.
Problem :
You have a string….... read more
Golang : How to extract links from web page ?
Golang's third party package goquery provides excellent tools to assist developers in building HTML parser/crawler. In this tutorial,….... read more
Golang : Date and Time formatting
Our civilizations won't progress till this stage without proper understanding, parsing and organising our lives base on date and time.….... read more
Golang : Constant and variable names in native language
Stumbled upon a discussion in Quora about the abilities of Golang. One of them is that Go allows developers to….... read more
Golang : Calculate elapsed years or months since a date
This is additional tutorial to our previous tutorial on how to calculate elasped run time. We will learn….... read more
Unix/Linux : Get reboot history or check when was the last reboot date
Probably not some command that many people will look for unless you are a system administrator. Ok, so I need….... read more
Golang : calculate elapsed run time
Calculating elapsed time can be useful for profiling or bench marking purpose. In this short tutorial, we will learn how….... read more
Unix/Linux : How to get own IP address ?
I know I know... this should be a fairly simple task.. but my memory is that good anymore.
Just….... read more
Golang : Detect (OS) Operating System
Ability to detect which type of operating system during run time can be helpful in programming a software behavior or….... read more
Golang : http.Get example
Grabbing content in raw HTML format is useful for crawling or parsing purpose. This short tutorial demonstrates how easy it….... read more
Golang : HTTP response JSON encoded data
Alright, time to get dirty again.
I need to do a quick and easy http.Get()
from another server(let say server….... read more
Golang : Process json data with Jason package
While writing out the tutorial on how to read json data and save to csv, I was thinking….... read more
Golang : Download file example
Continuing from previous tutorial on how to use http.Get()
function, in this tutorial, we will learn how to….... read more