[19] Results

Golang : How to check if input from os.Args is integer?

golang strconv parseint verify-input os-args

While coding out the Ackermann codes, I need to check if the input parameters are in numeric and….... read more


Golang : Get ASCII code from a key press(cross-platform) example

golang keyboard input ascii

Problem:

Somehow you are feeling nostalgic and played some retro games from the 80s such as Load Runner.... read more


Golang : How to pipe input data to executing child process?

golang input-pipe input-data os-exec

Problem :

Your program is executing a child process via os/exec and you want to pipe input data to the….... read more


Golang : Variadic function arguments sanity check example

golang variadic input-parameter

Problem:

Golang is cool and you love to use variadic function frequently. You have a variadic function such as a….... read more


Golang : How to read float value from standard input ?

golang read-integer standard-input

This is a continuation from previous tutorial on how to read integer value from standard input. For this tutorial, we….... read more


Golang : Disable security check for HTTPS(SSL) with bad or expired certificate

golang https ssl-certificate disable-security-check insecure-skip-verify

There are times when a webmaster failed to renew the certificates from SSL connection in time or some other reason….... read more


Golang : Verify token from Google Authenticator App

golang qr-codes verify google-authenticator two-factor-authentication

One of the steps to implement 2FA(two-factor authentication) is to verify the token generated by app such as Google Authenticator….... read more


Golang : How to read integer value from standard input ?

golang read-integer standard-input

Reading integer value from standard input in Golang is fairly simple with fmt.Scanf function. The code below demonstrate how to….... read more


Advertisement