[23] Results

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 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 : 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 : How to read integer value from standard input ?

golang read-integer standard-input

Reading integer value from standard input in Golang is fairly simple with fmt.Scanf function. The code below demonstrate how to….... read more


Golang : Generate random integer or float number

golang random number integer float

Was helping out a friend last Sunday to finish up his Golang project and encounter a problem where we need….... 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


Advertisement