File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,9 +76,9 @@ func (os objects[T]) MarshalLogArray(arr zapcore.ArrayEncoder) error {
76
76
return nil
77
77
}
78
78
79
- // objectMarshalerPtr is a constraint that specifies that the given type
79
+ // ObjectMarshalerPtr is a constraint that specifies that the given type
80
80
// implements zapcore.ObjectMarshaler on a pointer receiver.
81
- type objectMarshalerPtr [T any ] interface {
81
+ type ObjectMarshalerPtr [T any ] interface {
82
82
* T
83
83
zapcore.ObjectMarshaler
84
84
}
@@ -105,11 +105,11 @@ type objectMarshalerPtr[T any] interface {
105
105
//
106
106
// var requests []*Request = ...
107
107
// logger.Info("sending requests", zap.Objects("requests", requests))
108
- func ObjectValues [T any , P objectMarshalerPtr [T ]](key string , values []T ) Field {
108
+ func ObjectValues [T any , P ObjectMarshalerPtr [T ]](key string , values []T ) Field {
109
109
return Array (key , objectValues [T , P ](values ))
110
110
}
111
111
112
- type objectValues [T any , P objectMarshalerPtr [T ]] []T
112
+ type objectValues [T any , P ObjectMarshalerPtr [T ]] []T
113
113
114
114
func (os objectValues [T , P ]) MarshalLogArray (arr zapcore.ArrayEncoder ) error {
115
115
for i := range os {
You can’t perform that action at this time.
0 commit comments