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

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

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

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

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

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

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

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

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

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

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

Problem:

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



golang.pngGolang : GMail API create and send draft with simple upload attachment example

Continuing from our previous example of how to send an email with attachment using Gmail API. We will….... read more



Advertisement

Advertisement

Advertisement