Answer the question
In order to leave comments, you need to log in
uint8, 16, 32 int8, 16, 32 to string and vice versa Go?
Nowhere can I find information on converting these types to a string and vice versa. Found only for uint64 int64 in strconv
Answer the question
In order to leave comments, you need to log in
A simple cast to type does not work?
play.golang.org/p/5lk3_iv-kR
There is an easy way to convert anything to a string fmt.Sprint(
) back fmt.Sscan()
. All the machinery is hidden behind the stage, but it's quite heavy back there. playground
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question