#How to set dependency module constructor params

1 messages · Page 1 of 1 (latest)

prisma topaz
#

Hi everyone, i have created 2 modules with constructor params, because i am doing some chainings with both. The thing i have set one of the modules as a dependency, and i would like to know how to set the constructor params values when called as a dependancy modules. Thanks in advance for the help.

supple rover
prisma topaz
#

yes

#

example i have a Version module with some versioning logic, and i have a Builder module that needs to call Version functions, they both have similar params like source etc.. from Builder how to set those params for Version module...

supple rover
prisma topaz
#

i'm using Go, i do call dag.Version() then i have for example dag.Version().source but i can not set any value to it...

supple rover
prisma topaz
#

sure

#

ah i think i forgot something in my code, checking...

prisma topaz
#

ok, so my problem was that the constructor was not correct, so now that i fixed it, i am able to pass the params to Version, sorry...