Problem scenario
Your Golang program has variables with values that look like this:
{0xc4200457e8 [97 49]}
You think the that underlying variables should have regular alphabetic string values. What should you do?
Solution
Use the .string() function.
When you use strings.Builder for a variable, the value will be a hexadecimal value. To retrieve the string value that you intend,
…
Continue reading “How Do You Troubleshoot Golang Using Hexademical Values?”