You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if this will be easier once Go exposes the generic child type via reflection, but for now I've been solving this with a recursive namer. I'm not sure what other types like arrays, maps, or slices show up as though.
If you'd like to add some broken tests for this, it'd be easier to have a look and align expectations. Generics were not available when this library was first built!
Is it possible to customise how the names of generic references are generated?
If I have for example the following:
The resulting
$ref
for theFooBar
$def
isFooMap[github.com/full/path/to/package.Bar]
.I'd like to change this to
FooMap[Bar]
.The text was updated successfully, but these errors were encountered: