goadesign / goadesign/goa

Embedding external types

Open
#3,840 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
6.1k
Forks
583
Avg merge
2d 10h
Merged PRs (30d)
15

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.