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
-
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