https://www.includehelp.com/golang/read-data-from-file-till-specified-character-using-pre-defined-function.aspx