You could also do:
str := fmt.Sprintf("%s: %g", "pi", 3.1415926536)
Or whatever floats your boat.
Have I not already mentioned the fmt package? If so, I'll
mention it again: the fmt package.
Chris
--
Chris "allusive" Dollin
--
"The reasonable man adapts himself to the
world; the unreasonable persists in trying
to adapt the world to himself. Therefore
all progress depends on the unreasonable." - George Bernard Shaw
Some of it (but a good point despite my following):
... conversions to and from string representations of basic data types.
So if you have maps and slices and structs and stuff, you'd have
to write a deal by hand. Depending on /exactly/ what one is trying
to do -- the OP isn't specific -- one or other may be more useful.