[65] Results

Golang : Convert int(year) to time.Time type

golang integer-time convert

Problem :

You have integer value such as a year and you want to convert the integer to time.Time type.….... read more


Golang : Find the length of big.Int variable example

golang big-integer length

There is a chance that you will ever need to get the length of big.Int variable and below is a….... read more


Golang : convert rune to integer value

golang rune integer

Just a short tutorial on how to convert a rune into integer. Converting rune to integer value can be useful….... read more


Golang : convert(cast) string to integer value

golang string cast integer

To convert or cast a string to integer value, just use the strconv.Atoi() function. Below is the code example to….... read more


Golang : Convert IPv4 address to decimal number(base 10) or integer

golang ip-address decimal-base-10 integer

Problem :

IP address in decimal is easier to search, filter or compare. For example, searching for IP address in….... 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 : Convert integer to binary, octal, hexadecimal and back to integer

golang hexadecimal binary octal integer

Converting integers to binary, octal and hexadecimal is fairly common in programming life. Ported these simple functions from Python to….... read more


Golang : How to read float value from standard input ?

golang read-integer standard-input

This is a continuation from previous tutorial on how to read integer value from standard input. For this tutorial, we….... read more


Advertisement

Advertisement