Tutorials
Golang : Find commonalities in two slices or arrays example
Problem:
You have two slices of the same length and you want to find out if they have similar/common items.
….... read moreGolang : Use TLS version 1.2 and enforce server security configuration over client
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 : Use modern ciphers only in secure connection
Problem:
You want to configure your Golang program to establish secure connection with "modern" type of ciphers and exclude the….... read more
Golang : Get first few and last few characters from string
Problem:
You need to find the last few or first few characters from a string. How to do that?
Solution:
….... read moreGolang : Intercept and process UNIX signals example
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 : Reset buffer example
There are two ways to reset a buffer that with content ( length not equal zero ). You can use….... read more
Golang : Get expvar(export variables) to work with multiplexer
Golang has the expvar package that allows your web application to display debugging information during run time. Basically,….... read more
Golang : Get path name to current directory or folder
Problem :
You need to get the path name of the current directory where the executable is residing. How to….... read more
Golang : Remove or trim extra comma from CSV
Jotting down this note for future reference. In case it might be useful to you. A friend has a CSV….... read more
Golang : How to get Unix file descriptor for console and file
A short tutorial showing you how to obtain the Unix file descriptor for terminal/console and file in Golang with the….... read more
Golang : Get terminal width and height example
Problem :
You want to find out a terminal/console's width and height to calibrate your Golang text based program display.….... read more
Golang : Get HTTP protocol version example
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 + FastCGI + Go Setup.
UPDATE : Previous code example no longer work since Golang version 1.5. Updated the code example below to work with….... read more
Golang : Read XML elements data with xml.CharData example
For this post, we will learn how to read inner XML elements data with xml.CharData
type. This tutorial will show….... read more
Golang : Gomobile init produce "iphoneos" cannot be located error
Problem :
Golang mobile packages provide support for mobile devices and build tools that allows Golang developers to….... read more
Golang : Get uploaded file name or access uploaded files
A regular community member of Golang Facebook group asked a question recently on how to capture the uploaded filename in….... read more
Golang : How to force compile or remove object files first before rebuild?
Problem :
You want to use rebuild or refresh your Golang program every time there is a change on any….... read more
Golang : Display packages names during compilation
Problem :
You need to identify the packages that a Golang program need or perhaps you just want to list….... read more