Tutorials

golang.pngGolang *File points to a file or directory ?

7th July 2014

In this tutorial, we will learn how to find out if the *File pointer is pointing to a file or….... read more



golang.pngGolang :Trim white spaces from a string

7th July 2014

String manipulation functions are a must have for a programming language and Go has plenty of them. In this tutorial….... read more



golang.pngFind and replace a character in a string in Go

7th July 2014

String manipulation functions are a must have for a programming language and Go has plenty of them. In this tutorial….... read more



golang.pngGolang : md5 hash of a string

6th July 2014

This is the simplified version of the previous tutorial on generating checksum in Go. The aim is to….... read more



golang.pngGolang : Check if a directory exist or not

6th July 2014

In this short tutorial, we will learn how to check if a parameter passed as argument is directory or not.….... read more



golang.pngDelete a directory in Go

2nd July 2014

A simple tutorial on how to delete a directory in Go. This tutorial is a respond to this solution.... read more



golang.pngGolang : Convert file content to Hex

2nd July 2014

Somehow for the last couple of days I keep on thinking about my childhood days of hacking DOS games with….... read more



golang.pngGet file path of temporary file in Go

2nd July 2014

There are time when we need to know the exact file path of a temporary file. This is a a….... read more



golang.pngGolang : Create Temporary File

2nd July 2014

Need to create a temporary file in Go? Easy. Below is the code in Go for creating a temporary file

.... read more



golang.pngCreate directory in Go

2nd July 2014

In this short tutorial, we will learn how to create directory in platform independent manner. I.e we don't worry about….... read more



golang.pngGolang : Convert file content into array of bytes

2nd July 2014

It is a fairly common requirement to read a file content into array of bytes and output those arrays back….... read more



golang.pngGenerate checksum for a file in Go

1st July 2014

With billions of files being downloaded and transferred across Internet everyday. Generating checksum is important component in proramming today to….... read more



golang.pngGolang : Get current file path of a file or executable

1st July 2014

Getting a file path in Golang is not that straight forward with just a single function call. In this tutorial,….... read more



golang.pngGolang : Get file last modified date and time

30th June 2014

In this tutorial, we will learn how to get a file last modified date and time with Go. Getting the….... read more



golang.pngGolang : Change a file last modified date and time

30th June 2014

There are times when we need to perform some operation on a file, but then manually change the last modified….... read more



golang.pngillegal rune literal

30th June 2014

Problem : While writing out Go codes for tutorial today I came across this error message for the first time….... read more



adsense.jpgResponsive Google Adsense

30th June 2014

Problem :

Google Adsense have several recommended ads sizes for publisher to put on their website. However, these ads recommended….... read more



golang.pngGolang : Get current time

30th June 2014

Problem :

Need to get current time stamp in Go and display in string.

Solution :

Use the time.Local() and….... read more



Advertisement