Skip to content

Embedding external types #3840

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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