Let's make a go 1-compatible list of all the ways to read and write files in go. Because file api has changed recently and most other answers don't work with go 1. They also miss bufio which is …

Create your main. go in the same directory write this in your terminal go mod init your_module_name create a new …