Skip to content

generics: remove calls to reflectutil.MustBeOfKind in checker providers methods #85

@GregoryAlbouy

Description

@GregoryAlbouy

Description

reflectutil.MustBeOfKind is used to ensure the underlying type of an interface{} parameter is an expected kind.

MapCheckerProvider and SliceCheckerProvider now being correctly typed with generics, reflectutil.MustBeOfKind calls in their methods became superfluous and should be removed.

Todo

  • Remove calls to reflectutil.MustBeOfKind in MapCheckerProvider methods
  • Remove calls to reflectutil.MustBeOfKind in SliceCheckerProvider methods

Metadata

Metadata

Assignees

No one assigned

    Labels

    devgenericsRelated to Go 1.18 generics, must target branch `go1.18-generics-experimentations`good first issueGood for newcomerssize: S

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions