How can I read a whole file into a string variable

I have lots of small files, I don’t want to read them line by line.

Is there a function in Go that will read a whole file into a string variable?

6 Answers
6

Leave a Comment