[809] Results

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


Golang : Struct field tags and what is their purpose?

golang struct-field-tags meta-data json xml datastore

Got a curious question asked by a colleague today on what's the purpose on field tags inside a struct. For….... read more


Golang : How to declare kilobyte, megabyte, gigabyte, terabyte and so on?

golang kilo megagigaterapeta...

Problem :

How to declare one MegaByte in Golang so that I can use it to calculate filesize allocation?

Solution….... read more


Golang : Create S3 bucket with official aws-sdk-go package

golang AWS-SDK-GO S3-bucket upload download

This is just one of the updates/supplementary tutorials to the previous tutorial on how to upload to AWS….... read more


Golang : Timeout example

golang time-sleep time-out time-after delay

It is important for programs to know when to abort when connecting to external resources. One such example is the….... read more


Golang : Validate IP address

golang validate ip-address regular-expression regexp compile

Problem :

You need to validate if a given IP address string is a valid IP address.

Solution :

Use….... read more


Advertisement