From 1055774a44c216387425d5e1025e89dc052fb30a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=B7=E5=8B=87?= Date: Mon, 21 Aug 2023 16:42:02 +0800 Subject: [PATCH] code format --- dataset.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dataset.go b/dataset.go index fd7890f..f1773d5 100644 --- a/dataset.go +++ b/dataset.go @@ -5,16 +5,16 @@ import ( ) type DataSet struct { - rows *sql.Rows + rows *sql.Rows columns []string - values []interface{} + values []interface{} } func (this *DataSet) Next() bool { ret := this.rows.Next() this.GetColumns() this.values = []interface{}{} - for i := 0 ; i < len(this.columns); i++ { + for i := 0; i < len(this.columns); i++ { str := "" this.values = append(this.values, &str) } @@ -52,7 +52,7 @@ func (this *DataSet) GetByName(name string) *string { func (this *DataSet) GetByIndex(index int32) *string { this.GetColumns() - return this.values[index].(*string); + return this.values[index].(*string) } func NewDataSet(rows *sql.Rows) *DataSet {