Tutorials

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



golang.pngGolang : Create File

27th June 2014

Any sane programming language should have the basic File I/O functions. Luckily Go is one programming language in the sane….... read more



golang.pngGolang : Move file to another directory

27th June 2014

So far, Go does not have a function to directly move file to different folders. We have to provide our….... read more



golang.pngGolang : Delete files by extension

26th June 2014

Being able to select certain type of files to delete can be useful. In this follow up tutorial from .... read more



golang.pngGolang : Rename file

26th June 2014

No File I/O operations will be complete without the capability to rename file.

Renaming a file in Go is….... read more



golang.pngGolang : Find files by extension

26th June 2014

This is a filepath.Ext() function example and it will only display files with .png extension in the current directory. You….... read more



golang.pngGolang : Write file with io.WriteString

26th June 2014

Writing to a file in Golang is easy. There are couple of ways to do it. In this tutorial, we….... read more



Advertisement