Re: [go-nuts] Writing Json output to a file

2022-09-29 Thread Eli Bendersky
On Thu, Sep 29, 2022 at 10:47 AM Mahesh Sharma 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/writ

[go-nuts] Writing Json output to a file

2022-09-29 Thread Mahesh Sharma
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. -- You received this message because you are subscribed to the Google Groups "golang-nuts" grou