[29] Results

Golang : How to detect a server/machine network interface capabilities?

golang network-interface multicast point-to-point broadcast loopback

Problem :

You want to know which network interfaces on a server that support Broadcast, Loopback, PointToPoint or Multicast networking….... read more

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

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


You want to log each HTTP request made to your web server complete with duration (start time - end….... read more

Golang : Convert string slice to struct and access with reflect example

golang reflect slice-to-struct

Writing this down here for my own future references. Basically, what this code does is to convert a given string….... read more

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

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 : 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

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