1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-08-04 21:42:57 +02:00

fix extraction field naming with standard Go types (#2763)

This commit is contained in:
Asim Aslam
2025-05-15 18:59:10 +01:00
committed by GitHub
parent cd2b40ca4a
commit caba761c7b

View File

@@ -44,6 +44,8 @@ func extractValue(v reflect.Type, d int) *registry.Value {
continue
}
val.Name = parts[0]
} else {
val.Name = f.Name
}
// if there's no name default it