Thank you for such an informative & entertaining post, &y! I've been struggling with these concepts, but working it out like this has helped a lot.
As a note, I needed to change file, err := os.OpenFile(...) to file, err := os.Open(...) for some reason.
file, err := os.OpenFile(...)
file, err := os.Open(...)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.