[34] Results

Golang : How to check variable or object type during runtime?

golang object-variable-type kind type-of reflect

Problem :

You need to determine the type of data your program is getting from the user input or the….... read more

Golang : Detect variable or constant type

golang reflect type-of variable constant

Problem :

You have a variable or constant and you want to know which type the variable belongs to.

Solution….... read more

Python : Find out the variable type and determine the type with simple test

python variable-type type-function

Couple of ways to determine or find out the type of a variable or object in Python. Listing down the….... read more

Which content-type(MIME type) to use for JSON data

javascript jquery header content-type mime-type

Problem :

Your program sitting in your web server is pumping out JSON data. You need to set the correct….... read more

Golang : Check if integer is power of four example

golang math-pow power-of


You need to test if a given integer is a power of 4. For example, if given number =….... read more

Golang : Math pow(the power of x^y) example

golang math-pow power-of

No programming language will be complete without the power of math function. This tutorial is a simple example on how….... read more

Golang : Convert(cast) string to uint8 type and back to string

golang string uint8 type-cast

Problem :

You have a variable of type string and you want to convert/type cast it to uint8 type.

Solution….... read more

Golang : How do I convert int to uint8?

golang int uint8 type-cast

Problem :

You have a variable of type int and you want to convert it to type uint8.

Solution :

.... read more