[59] Results

Golang : Measure http.Get() execution time

golang measure-get-time http-get

There are times where you need to measure how long a http.Get() response time takes for debugging reason or network….... read more


Golang : Measure execution time for a function

golang measure-function-time execution-time footer

Ok, this is another way to measure execution time of a Golang function. This method uses defer and produce a….... read more


Golang : Get current time

golang get-current-time

Problem : Need to get current time stamp in Go and display in string. Solution : Use the time.Local() and time.Format() functions. getcurrenttime.go package main….... read more


Golang : Get current, epoch time and display by year, month and day

golang get-current-time now epoch-time unix-time

Problem :

You need to get current and Epoch(Unix) time and display the time by year, month and day.

Solution….... read more


Golang : Get future or past hours, minutes or seconds

golang get-time-past-future calculate-hour-minute-second

Problem:

You need to calculate future or past minutes, hours or seconds from the current time. Ability to calculate future….... read more


Golang : Get month name from date example

golangget-year-month-day time-now-date

Problem:

You have a date and you want to get the month name from the date. For example,10/10/2017 should give….... read more


Golang : Get sub string example

golang get-sub-string

Getting sub string is a common task in extracting details from a larger set of information. Here is a quick….... read more


Golang : http.Get example

golang http get

Grabbing content in raw HTML format is useful for crawling or parsing purpose. This short tutorial demonstrates how easy it….... read more


Advertisement