Explorar o código

gofmt marshal_test.go

Chris Bannister %!s(int64=10) %!d(string=hai) anos
pai
achega
906d46bb42
Modificáronse 1 ficheiros con 9 adicións e 9 borrados
  1. 9 9
      marshal_test.go

+ 9 - 9
marshal_test.go

@@ -528,7 +528,7 @@ var marshalTests = []struct {
 		(*map[string]int)(nil),
 	},
 	{
-		NativeType{ proto: 2, typ: TypeVarchar},
+		NativeType{proto: 2, typ: TypeVarchar},
 		[]byte("HELLO WORLD"),
 		func() *CustomString {
 			customString := CustomString("hello world")
@@ -536,7 +536,7 @@ var marshalTests = []struct {
 		}(),
 	},
 	{
-		NativeType{ proto: 2, typ: TypeVarchar},
+		NativeType{proto: 2, typ: TypeVarchar},
 		[]byte(nil),
 		(*CustomString)(nil),
 	},
@@ -683,15 +683,15 @@ func equalStringSlice(leftList, rightList []string) bool {
 }
 
 func TestMarshalList(t *testing.T) {
-	typeInfo := CollectionType {
-		NativeType: NativeType { proto: 2, typ: TypeList },
-		Elem: NativeType{ proto: 2, typ: TypeVarchar },
+	typeInfo := CollectionType{
+		NativeType: NativeType{proto: 2, typ: TypeList},
+		Elem:       NativeType{proto: 2, typ: TypeVarchar},
 	}
 
-	sourceLists := [][]string {
-		[]string{ "valueA" },
-		[]string{ "valueA", "valueB" },
-		[]string{ "valueB" },
+	sourceLists := [][]string{
+		[]string{"valueA"},
+		[]string{"valueA", "valueB"},
+		[]string{"valueB"},
 	}
 
 	listDatas := [][]byte{}