Documentation
¶
Overview ¶
The table package implements a simplistic 2-dimensional array that can be populated one cell at a time, and output as a CSV. It is intended to be used to build up a wide table from results of queries on the geo_metric table.
So input that looks like this:
HERE COLA 10 HERE COLB 20 THERE COLA 30 THERE COLB 40
Becomes
GEO COLA COLB HERE 10 20 THERE 30 40
Index ¶
Constants ¶
View Source
const ( ColGeographyCode = "geography_code" ColGeotype = "geotype" ColGeocodes = "geocode" // XXX temporary )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func (*Table) Generate ¶
Generate produces a CSV version of the table on w. It doesn't close w.
include is a list of non-category columns to include in the output table. Currently supported values are "geography_code" and "geotype".
Click to show internal directories.
Click to hide internal directories.