[806] Results

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


Golang : Find file size(disk usage) with filepath.Walk

golang filepath-walk file size disk-usage find

Need to determine which file is taking up all the disk space? Maybe this small Golang program can be useful….... read more


Golang : Qt update UI elements with core.QCoreApplication_ProcessEvents

golang Qt progress-dialog-bar qt-core-process-events update-elements

Not a tutorial, but putting this here in case I need to refer back in future. While developing a .... read more


Golang : Display a text file line by line with line number example

golang read-text-file line-by-line strings-split ioutil-readfile

Problem:

Instead of using cat or more commands to display a text file line by line. You want to display….... read more


Advertisement