I finally figured out how to use the bufio library but I also had to get acquainted with another library for strings to trim bufio's appended newlines
Just found out nil is the equivalent of NULL