Replies: 1 comment
-
Seems like you have X and XParams a bit backwards... I think you want something more like
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is somewhat related to #725.
I would like to avoid adding adding parameters into constructors as I add fields to the underlying struct. I can use param objects but this looks like a lot of boilerplate:
Sure I could use something like https://github.com/jinzhu/copier in
NewX
but that is some extra dependency.So I would like to use
fx.Populate()
instead of the constructor. But if I do something like:I will get
What would be the proper way to do something like this then?
Beta Was this translation helpful? Give feedback.
All reactions