[30] 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


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


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


Golang : [json: cannot unmarshal object into Go value of type]

golang json-cannot-unmarshal-object

Un-marshalling JSON data from external sources can be challenging sometimes. Encountered this error message while working on the previous .... read more


Golang : Get URI segments by number and assign as variable example

golang URI segment variable

Coming from PHP and CodeIgniter(framework for PHP) background. One thing that I missed is the URI helper's $this->uri->segment(n) where it….... read more


Setting $GOPATH environment variable for Unix/Linux and Windows

golang gopath environment-variable

Go relies on one important environment variable called $GOPATH to determine where is the workspace located in your computer. To….... 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 : interface - when and where to use examples

golang interface unmarshal object-oriented

Question :

New comer to Golang will need to learn about interface eventually. So what exactly is interface? Where and….... read more


Advertisement