diff --git a/stats/struct_flattener.go b/stats/struct_flattener.go index 48dfb78..a55f0f4 100644 --- a/stats/struct_flattener.go +++ b/stats/struct_flattener.go @@ -97,5 +97,5 @@ func flattenValue(val reflect.Value) FlatMap { } func Flatten(val interface{}) FlatMap { - return flattenPointer(reflect.ValueOf(val)) + return flattenValue(reflect.ValueOf(val)) }