Skip to content

Commit

Permalink
Fix for Go 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
firelizzard18 committed Apr 2, 2024
1 parent 0f30d2b commit 73886e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/util/cmd/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func JsonFlagOf[V any](v V) *JsonFlag[V] {
}

func (f *JsonFlag[V]) Type() string {
return reflect.TypeFor[V]().Name()
return reflect.TypeOf(new(V)).Elem().Name()
}

func (f *JsonFlag[V]) String() string {
Expand Down

0 comments on commit 73886e0

Please sign in to comment.