[838] Results

Golang : Skip or discard items of non-interest when iterating example

golang read-file skip-iterable-item strings-index

Problem:

You want to skip or discard items of non-interest when iterating. For example, skipping the commented lines with #.... read more


Golang : Read large file with bufio.Scanner cause token too long error

golang token-too-long bufio-scanner bufio-reader

There are couple of ways to read files with Golang and one of the common way to read in file….... read more


Golang : How to check variable or object type during runtime?

golang object-variable-type kind type-of reflect

Problem :

You need to determine the type of data your program is getting from the user input or the….... read more


Golang : Dealing with postal or zip code example

golang octal postal-code zip-code padding-zero

Problem :

For some countries, the postal code or zip code starts with zero and this can be problematic for….... read more


Golang : How to get time from unix nano example

golang time unix-nano utc-from-unix-nano

Just an add on to previous tutorial on how to get time in milliseconds. This is a short….... read more


Golang : Display float in 2 decimal points and rounding up or down

golang math-pow float round-up round-down decimal-points

We will cover 2 items for this tutorial.

First, we will learn how to display a float number in….... read more


Golang : Get Alexa ranking data example

golang fetch-alexa-data xml-attribute xml-newdecoder

Problem :

You want to get a website Alexa ranking and process the data in Golang.

Maybe for tracking….... read more


Golang : Gorilla web tool kit secure cookie example

golang secure-cookie gorilla-webtoolkit generate-random-key

Sometimes we need to track user payment status and store the items to be purchased in the browser's cookies cache/jar.….... read more


Advertisement