People tend to use strings far too much.
Does tlsCert in this code really need to be a string?
Probably not.
But it it does really need to be a string, then converting to a sting as
you have done is
quite straight forward. And explicit is better than implicit.
The beauty of Go is its simplicity
Please no. This is just begging for problems.
A simple type conversion is 1 (one!) line and pretty clear.
Once you open this can of worms someone would like
to have a []rune and then automatic conversions from
int32 to int and 6 month later you have a JavaScript
like nonsense language just because