Hello,
I’m accumulating some JSON from an finish level. I can print this to display screen:
fmt.Printf(“%sn”, bodyText).
I’m struggling to determine find out how to write the bodyText to a file.
Any assist appreciated.
If you happen to imply that you just don’t know find out how to open a file, I like to recommend testing os.Create
or os.OpenFile
. If you happen to imply find out how to write the info into the file, I like to recommend testing fmt.Fprintln
. If you happen to imply one thing else, are you able to elaborate on what you’re fighting?