Skip to content
Randall O'Reilly edited this page Aug 8, 2021 · 2 revisions

Like Sort, filtering operates via IdxView:

Example:

ix := etable.NewIdxView(&MyTable)
nmcl := MyTable.ColByName("Name")
ix.Filter(func(et *Table, row int) bool {
	// filter return value is for what to *keep* (=true), not exclude
	// here we keep any row with a name that contains the string "in"
	return strings.Contains(nmcl.StringVal1D(row), "in")
})
Clone this wiki locally