Skip to content

Embedding external types #3840

@Gorni819

Description

@Gorni819

How do you feel about adding some functions, for example func Embed(exteranTypeInstance any) to reuse external type definitions with their methods? I want to use methods of go types from external libs. I found a solution with "ConvertTo()", but in my opinion it is too inconveniently to write every time something like res.ConvertToMyCustomExternalType().MyMethod().

Or is there any other way to make it possible to use res.MyMethod() directly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions