progression

This commit is contained in:
Bel LaPointe
2023-10-24 06:20:49 -06:00
parent 392036f2b0
commit 6af8af629b

View File

@@ -129,5 +129,16 @@ func readTransactionDate(r io.Reader) (string, error) {
} }
func readTransactionDescription(r io.Reader) (string, error) { func readTransactionDescription(r io.Reader) (string, error) {
return "", io.EOF result := make([]byte, 0, 16)
var firstByte [1]byte
for {
if _, err := r.Read(firstByte[:]); err != nil {
return "", err
}
if firstByte[0] == '\n' {
break
}
result = append(result, firstByte[0])
}
return string(result), nil
} }