Define Row type as []interface{}
This commit is contained in:
parent
27104c05f1
commit
45f42dbb5e
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user