Are there any examples in Go of how to use gtk.TreeModelForeachFunc to iterate over a ListStore?
I cannot seem to get the syntax right – there are exmples in c, Python, Rust, but nothing in Go!
I cannot get past compile errors.
Liststore.ForEach(gtk.TreeModelForeachFunc func() {
content = ""
for i := 0; i < cols ; i++ {
content = content + line[i]
if i < cols -1 {
content = content + "/t"
} else {
content = content + "/n"
}
}
_, err := tempfile.WriteString(content)
if err != nil {
Logit.Fatal("Error writing to tempfile %s, error %s", "AIStemp.txt", err)
return
}
return
})
trying to iterate through a gtk.ListStore!