whats the best practice if i like to split my pulu...
# golang
q
whats the best practice if i like to split my pulumi.run program body to smaller/separate functions/files?
e
You can just split it into different function and pass the
pulumi.Context
as a parameter. You might also want to look at component resources.
q
passing the context is fine, however sometimes i need to pass few more parameters too. i will look into that, thanks.
e
Don't overthink it too much, it's pretty much just like you'd write any other normal Go program.
q
sure, thanks