If all you want to do is output specific byte strings (and not do any
string formatting) you can just write straight to os.Stdout. fmt will
do the same thing eventually, so if you don't need any of its
functionality you might as well skip it.
Andrew
Yes. fmt.Fprint will interpret %-verbs in the string, so if you might
have %-characters in that string, beware.
[I assume your question was more general than just for the specific
string "str".]
Chris
--
Chris "allusive" Dollin
No. Fprint does not use format strings, Fprintf does.
--Benny.
--
The first essential in chemistry is that you should perform practical
work and conduct experiments, for he who performs not practical work
nor makes experiments will never attain the least degree of mastery.
-- Abu Musa Jabir ibn Hayyan (721-815)
(fx:peers-closely)
Dagnabbit. So it isn't.
Thanks for catching it.