Go implementation of table/calc