[59] Results

Golang : Get local time and equivalent time in different time zone

golang time-zone load-location time-in-location

Problem :

You want to show your website visitor the local time(on your server) and the equivalent time in another….... read more

Golang : How to get time zone and load different time zone?

golang time-zone load-location

Problem :

You need to get current time zone and load different time zone. How to do that in Golang?

.... read more

Golang : Get missing location after unmarshal binary and gob decode time.

golang time location unmarshal-binary gob-decode

Problem :

You loaded some time based data, found out that the time is missing location data and somehow screw….... read more

Golang : Detect user location with HTML5 geo-location

golang detect-location google-map

Problem :

You need to detect your visitor's location (i.e latitude and longitude) and display on Google map showing the….... read more

Golang : Integer is between a range

golang minmax in-between-range integer


You need to check if a given integer is in between a range of integer. How to do that?

.... 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 : Sort words with first uppercase letter

golang sort-words uppercase map replace-element-in-slice tag


You use the sort.Strings() function to sort a slice of words. However, you noticed that words with the first….... read more

Golang : Calculate time different

golang time-different

Problem :

You are looking to calculate the days between two dates. How to do that in Golang?

Solution :

.... read more