From 65d31eff26c5335dd887caf65434efa908285ef8 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 21 May 2019 17:20:43 -0700 Subject: [PATCH] more debugging Signed-off-by: Jeff Carr --- example-table2/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example-table2/main.go b/example-table2/main.go index df4e410..56571ba 100644 --- a/example-table2/main.go +++ b/example-table2/main.go @@ -293,7 +293,7 @@ func demoSetCellValue(mh *modelHandler, m *ui.TableModel, row, column int, value } func (mh *modelHandler) NumRows(m *ui.TableModel) int { - log.Println("NumRows() with m=", m) + log.Println("NumRows() with mh=rows", mh.rows) return mh.rows } @@ -314,6 +314,8 @@ func (mh *modelHandler) CellValue(m *ui.TableModel, row, column int) ui.TableVal log.Println("CellValue NOT DEFINED. This table wasn't setup correctly! mh.scanCellValue == nil") os.Exit(-1) } + log.Println("CellValue scanCellValue = ", mh.scanCellValue(mh, row, column)) + log.Println("CellValue END") return mh.scanCellValue(mh, row, column) }