mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
code refactor
This commit is contained in:
@@ -67,6 +67,10 @@ func (r *ezBookKeepingTransactionPlainTextDataRow) ColumnCount() int {
|
|||||||
|
|
||||||
// GetData returns the data in the specified column index
|
// GetData returns the data in the specified column index
|
||||||
func (r *ezBookKeepingTransactionPlainTextDataRow) GetData(columnIndex int) string {
|
func (r *ezBookKeepingTransactionPlainTextDataRow) GetData(columnIndex int) string {
|
||||||
|
if columnIndex >= len(r.allItems) {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
return r.allItems[columnIndex]
|
return r.allItems[columnIndex]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user