[33] Results

Golang : How to convert JSON string to map and slice

golang json-to-map json-to-slice array

Couple of simple examples on how to convert JSON string to map and slice(array).

Simple and straightforward way of converting….... read more


Facebook : How to place save to Facebook button on your website

save-to-facebook uri fb-app

Just a quick tutorial on how to place the save to Facebook button on a web page. Instead of bookmarking….... read more


Golang : Save map/struct to JSON or XML file

golang XML json save-to-file

Previous tutorial on converting map/slice/array to JSON or XML format is for output to web via net/http package.….... read more


Golang : convert int to string

golang strconv convert-to-string

While working on previous tutorial on displaying struct values in string format with a method. I stumbled upon….... read more


Golang : Image to ASCII art example

golang ascii-art image-to-ascii

This tutorial is just for fun and want to relive my DOS programming days for a while. In this tutorial,….... read more


Golang : Convert int to byte array([]byte)

golang integer-to-byte-array strconv convert-to-string

Problem :

You need to convert integer variable or constant to byte array ( [] byte ). How to do….... read more


Golang : Ordinal and Ordinalize a given number to the English ordinal numeral

golang translate-number-to-words convert-number ordinalize

Two functions that will convert a given number to the English ordinal numeral. Can be handy in developing chat bot….... read more


Golang : Convert seconds to human readable time format example

golang convert-seconds-to-human time plural

Occasionally in the scientific world, we will encounter instruments that gave reading in seconds denomination and in this tutorial, we….... read more


Advertisement