Gustavo Niemeyer 13 лет назад
Родитель
Сommit
a528d0ef48
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      decode_test.go
  2. 1 1
      goyaml.go

+ 1 - 1
decode_test.go

@@ -344,7 +344,7 @@ var unmarshalTests = []struct {
 }
 }
 
 
 type inlineB struct {
 type inlineB struct {
-	B int
+	B       int
 	inlineC `yaml:",inline"`
 	inlineC `yaml:",inline"`
 }
 }
 
 

+ 1 - 1
goyaml.go

@@ -162,7 +162,7 @@ type fieldInfo struct {
 	Flow      bool
 	Flow      bool
 
 
 	// Inline holds the field index if the field is part of an inlined struct.
 	// Inline holds the field index if the field is part of an inlined struct.
-	Inline    []int
+	Inline []int
 }
 }
 
 
 var structMap = make(map[reflect.Type]*structInfo)
 var structMap = make(map[reflect.Type]*structInfo)