I think a key word in the question is "original". Depending on how that is intended the answer is either "no" (unless unsafe is used with a whole heap of rigmarole) or "yes" with something along the lines of the playground link here (though note that bytes.Buffer has a String() string method).
On Mon, 2016-07-11 at 05:16 -0700, C Banning wrote: > https://play.golang.org/p/BmKQTewR9w > > On Monday, July 11, 2016 at 6:06:12 AM UTC-6, Mayank Jha wrote: > > > > Can I convert bytes.Buffer object to a string, and vice-versa , > getting > > the original bytes.Buffer object back from the string ? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.