Tutorials

golang.pngGolang : Totalize or add-up an array or slice example

16th September 2016

A simple example on how to totalize or add-up all the integer elements in a slice/array. Just use a for.... read more



golang.pngGolang : Compare files modify date example

16th September 2016

Problem:

You're writing a game that will create multiple save files and you want to compare the save game files….... read more



golang.pngGolang : Fix go.exe is not compatible with the version of Windows you're running

15th September 2016

Problem: You just installed the default binary download of Golang for Windows and when you attempt to execute go.exe binary….... read more



golang.pngGolang : Get executable name behind process ID example

15th September 2016

Problem:

You want to check if a process is actually running and at the same time you want to find….... read more



golang.pngGolang : Check if integer is power of four example

1st September 2016

Problem:

You need to test if a given integer is a power of 4. For example, if given number =….... read more



golang.pngGolang : Handle or parse date string with Z suffix(RFC3339) example

31st August 2016

You want to convert a RFC3339 date string with Z suffix such as 2016-09-01T15:23:01Z to Golang's time.Time date type.

.... read more



golang.pngGolang : Convert date string to variants of time.Time type examples

31st August 2016

Here are few examples on how to convert a given date of string type to equivalent time.Time type. Most newbies….... read more



golang.pngGolang : Setup API server or gateway with Caddy and http.ListenAndServe() function example

21st August 2016

Writing this down for my own future references and hopefully it can be useful to you too. This is a….... read more



golang.pngGolang : Secure file deletion with wipe example

2nd August 2016

Problem:

You are not sure if the file deleted by os.Remove() function is good enough to remove your data forever.….... read more



golang.pngGolang : Multi threading or run two processes or more example

2nd August 2016

Problem:

You want to run two or more processes(multi-threading) in Golang. For example, you want to run a web server….... read more



golang.pngGolang : Find files by name - cross platform example

22nd July 2016

Problem:

You want to find or locate files by name or by wildcard in your Golang program to do stuff….... read more



golang.pngGolang : Get login name from environment and prompt for password

18th July 2016

Problem:

You want to write a Golang script(short program for administrating server, etc) that grab the current user's login name,….... read more



golang.pngGolang : Daemonizing a simple web server process example

17th July 2016

Problem:

You use the previous tutorial on how to put your Golang program into background but somehow found….... read more



golang.pngGolang : Convert(cast) uintptr to string example

16th July 2016

Problem:

You need a fast way to convert a variable of type uintptr to type string without using unsafe package.….... read more



golang.pngGolang : Resumable upload to Google Drive(RESTful) example

12th July 2016

This tutorial is a supplement to previous tutorial on how to upload file to Google Drive via REST….... read more



golang.pngGolang : Calculate entire request body length during run time

11th July 2016

Problem:

You are trying to figure out what to fill into the number_of_bytes_in_entire_request_body field when making a http.NewRequest(). You need….... read more



golang.pngGolang : Google Drive API upload and rename example

11th July 2016

For this tutorial, we will explore how to upload file to Google Drive using RESTful method and rename the file….... read more



golang.pngGolang : Remove characters from string example

7th July 2016

Problem:

You have a string and you want to remove certain characters from the string base on a set of….... read more



Advertisement