[33] Results

Golang : How to log each HTTP request to your web server?

golang log-http-request save-log-to-file request-logger

Problem:

You want to log each HTTP request made to your web server complete with duration (start time - end….... 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


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 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 : Word limiter example

golang slice-to-string word-limiter count-words

Problem:

You want to limit a string to X number of words. How to do that?

Solution:

Break the string….... read more


Golang : Get all countries currencies code in JSON format

golang json-unmarshal-to-map currencies-name iso

For this tutorial, we will learn how to get all the currencies names from http://country.io/currency.json and un-marshall them into a….... read more


Advertisement

Advertisement