dcsunny hace 4 años
padre
commit
bb67eda74a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      yaml.go

+ 1 - 1
yaml.go

@@ -622,7 +622,7 @@ func getStructInfo(st reflect.Type) (*structInfo, error) {
 		if tag != "" {
 			info.Key = tag
 		} else {
-			info.Key = strings.ToLower(field.Name)
+			info.Key = strings.ToLower(field.Name[0:1]) + field.Name[1:]
 		}
 
 		if _, found = fieldsMap[info.Key]; found {