susumu.yata
null+****@clear*****
Fri May 1 03:53:52 JST 2015
susumu.yata 2015-05-01 03:53:52 +0900 (Fri, 01 May 2015) New Revision: 7739731caa0c6dad33c3c02638cfe3cb74e6e413 https://github.com/groonga/grnxx/commit/7739731caa0c6dad33c3c02638cfe3cb74e6e413 Message: Gnx: apply go fmt. Modified files: go3/gnx/grn.go go3/gnx/grn_test.go Modified: go3/gnx/grn.go (+10 -10) =================================================================== --- go3/gnx/grn.go 2015-05-01 03:52:16 +0900 (e23f771) +++ go3/gnx/grn.go 2015-05-01 03:53:52 +0900 (20a3feb) @@ -85,8 +85,8 @@ func closeGrnCtx(ctx *C.grn_ctx) error { // -- GrnDB -- type GrnDB struct { - ctx *C.grn_ctx - obj *C.grn_obj + ctx *C.grn_ctx + obj *C.grn_obj tables map[string]*GrnTable } @@ -248,7 +248,7 @@ func (db *GrnDB) CreateTable(name string, options *TableOptions) (*GrnTable, err optionsMap["flags"] += "|KEY_WITH_SIS" } if options.KeyType != "" { - switch (options.KeyType) { + switch options.KeyType { case "Bool": optionsMap["key_type"] = "Bool" case "Int": @@ -267,7 +267,7 @@ func (db *GrnDB) CreateTable(name string, options *TableOptions) (*GrnTable, err } } if options.ValueType != "" { - switch (options.ValueType) { + switch options.ValueType { case "Bool": optionsMap["value_type"] = "Bool" case "Int": @@ -425,14 +425,14 @@ func (db *GrnDB) FindColumn(tableName, columnName string) (*GrnColumn, error) { // -- GrnTable -- type GrnTable struct { - db *GrnDB - obj *C.grn_obj - name string - keyType TypeID - keyTable *GrnTable + db *GrnDB + obj *C.grn_obj + name string + keyType TypeID + keyTable *GrnTable valueType TypeID valueTable *GrnTable - columns map[string]*GrnColumn + columns map[string]*GrnColumn } // newGrnTable() creates a new GrnTable object. Modified: go3/gnx/grn_test.go (+1 -1) =================================================================== --- go3/gnx/grn_test.go 2015-05-01 03:52:16 +0900 (3762a1d) +++ go3/gnx/grn_test.go 2015-05-01 03:53:52 +0900 (507108c) @@ -143,7 +143,7 @@ func generateRandomKey(keyType string) interface{} { ) latitude := MinLatitude + rand.Intn(MaxLatitude-MinLatitude+1) longitude := MinLongitude + rand.Intn(MaxLongitude-MinLongitude+1) - return GeoPoint{ int32(latitude), int32(longitude) } + return GeoPoint{int32(latitude), int32(longitude)} case "Text": return Text(strconv.Itoa(rand.Int())) default: -------------- next part -------------- HTML����������������������������...다운로드