[26] Results

Golang : Convert(cast) int64 to string

golang convert type-cast int64 string

Problem :

You want to convert(cast) a big integer value to string for display.

Solution :

Use strconv.FormatInt() function to….... read more


Golang : Convert(cast) float to int

golang convert type-cast float int

One of trait of a good programmer is laziness. There are times that I wish to have a complete source….... 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 : Convert(cast) int to int64

golang convert type-cast int64 int

It is not so cool to use type int now. It was so yesterday. Everyone wants to move to 64-bit….... read more


Golang : Fix type interface{} has no field or no methods and type assertions example

golang type-assertions interface map-string-interface

For new comers to Golang exploring interface{} for the first time or if you ever use interface{} to handle some….... read more


Golang : Convert(cast) string to rune and back to string example

golang convert type-cast rune string

Tutorial on how how to convert a string to rune type and back to string. Dealing with rune can be….... read more


Golang : Convert(cast) string to int64

golang convert type-cast int64 string

Problem :

You want to convert(cast) a string to big integer value(int64) for display.

Solution :

Use strconv.ParseInt() function to….... read more


Golang : Print UTF-8 fonts on image example

golang draw-imageutf8 true-type-font-ttf cjk

Problem:

You need to write UTF-8 characters such as Icelandic,Chinese, Japanese, Korean, Russian or symbols like © Ø ® ß….... read more


Advertisement

Advertisement