Define Row type as []interface{}

This commit is contained in:
Dan Sosedoff 2014-11-20 22:33:08 -06:00
parent 27104c05f1
commit 45f42dbb5e

View File

@ -14,9 +14,11 @@ type Client struct {
history []string history []string
} }
type Row []interface{}
type Result struct { type Result struct {
Columns []string `json:"columns"` Columns []string `json:"columns"`
Rows [][]interface{} `json:"rows"` Rows []Row `json:"rows"`
} }
func NewClient() (*Client, error) { func NewClient() (*Client, error) {