Tutorials

golang.pngGolang : Find commonalities in two slices or arrays example

1st January 2016

Problem:

You have two slices of the same length and you want to find out if they have similar/common items.

.... read more



golang.pngGolang : Use TLS version 1.2 and enforce server security configuration over client

30th December 2015

Problem:

You want to force your Golang program to use TLS(Transport Layer Security) protocol version 1.2 only and use server….... read more



golang.pngGolang : Use modern ciphers only in secure connection

30th December 2015

Problem:

You want to configure your Golang program to establish secure connection with "modern" type of ciphers and exclude the….... read more



golang.pngGolang : Get first few and last few characters from string

30th December 2015

Problem:

You need to find the last few or first few characters from a string. How to do that?

Solution:

.... read more



golang.pngGolang : Intercept and process UNIX signals example

30th December 2015

Golang's os/signal package allows you to configure the behaviour of your Golang program upon receiving certain type of UNIX signals.….... read more



golang.pngGolang : Reset buffer example

11th December 2015

There are two ways to reset a buffer that with content ( length not equal zero ). You can use….... read more



golang.pngGolang : Get expvar(export variables) to work with multiplexer

9th December 2015

Golang has the expvar package that allows your web application to display debugging information during run time. Basically,….... read more



golang.pngGolang : Get path name to current directory or folder

7th December 2015

Problem :

You need to get the path name of the current directory where the executable is residing. How to….... read more



golang.pngGolang : Remove or trim extra comma from CSV

7th December 2015

Jotting down this note for future reference. In case it might be useful to you. A friend has a CSV….... read more



golang.pngGolang : How to get Unix file descriptor for console and file

6th December 2015

A short tutorial showing you how to obtain the Unix file descriptor for terminal/console and file in Golang with the….... read more



golang.pngGolang : Get terminal width and height example

6th December 2015

Problem :

You want to find out a terminal/console's width and height to calibrate your Golang text based program display.….... read more



golang.pngGolang : Get HTTP protocol version example

3rd December 2015

Upgraded socketloop.com's NGINX web server to serve via HTTP/2 and wanted to find out if Golang can detect the HTTP/2.... read more



nginx.jpgNginx + FastCGI + Go Setup.

3rd December 2015

UPDATE : Previous code example no longer work since Golang version 1.5. Updated the code example below to work with….... read more



golang.pngGolang : Read XML elements data with xml.CharData example

2nd December 2015

For this post, we will learn how to read inner XML elements data with xml.CharData type. This tutorial will show….... read more



golang.pngGolang : Gomobile init produce "iphoneos" cannot be located error

27th November 2015

Problem :

Golang mobile packages provide support for mobile devices and build tools that allows Golang developers to….... read more



golang.pngGolang : Get uploaded file name or access uploaded files

26th November 2015

A regular community member of Golang Facebook group asked a question recently on how to capture the uploaded filename in….... read more



golang.pngGolang : How to force compile or remove object files first before rebuild?

25th November 2015

Problem :

You want to use rebuild or refresh your Golang program every time there is a change on any….... read more



golang.pngGolang : Display packages names during compilation

25th November 2015

Problem :

You need to identify the packages that a Golang program need or perhaps you just want to list….... read more



Advertisement