We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dc9b6e5 + ea74248 commit 12b8ca4Copy full SHA for 12b8ca4
1 file changed
cli/command/formatter/reflect.go
@@ -24,7 +24,7 @@ func MarshalJSON(x any) ([]byte, error) {
24
// marshalMap marshals x to map[string]any
25
func marshalMap(x any) (map[string]any, error) {
26
val := reflect.ValueOf(x)
27
- if val.Kind() != reflect.Ptr {
+ if val.Kind() != reflect.Pointer {
28
return nil, fmt.Errorf("expected a pointer to a struct, got %v", val.Kind())
29
}
30
if val.IsNil() {
0 commit comments