On Thu, Sep 29, 2022 at 10:47 AM Mahesh Sharma <mam...@gmail.com> wrote:
> Hi, > I'm collecting some JSON from an end point. I can print this to screen: > fmt.Printf("%s\n", bodyText). > > I'm struggling to figure how to write the bodyText to a file. > > Any help appreciated. > See https://gobyexample.com/writing-files In general, for simple usage questions like this one, https://gobyexample.com should be a useful resource Eli > > > > > -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/4e93b717-cc42-4cfa-85ae-daa2a708e914n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/4e93b717-cc42-4cfa-85ae-daa2a708e914n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAF-Rda9OneXJhVvA84s%3DoweUydQt2%2BQPtoP8-CxtSdviEM2Bdg%40mail.gmail.com.