#Calling optional args from Go

1 messages · Page 1 of 1 (latest)

fluid mural
#

Ok, the issue I have is that dag.Mod().Func("hello world") is what I want, but the client codegen is giving me something else - specifically an Opt{} struct

#

This is the module I'm trying to call

frail mural
#

ah, then you'll need it to not be optional

fluid mural
#

I tried dag.Wolfi().Container([]string{"openssh", "git"})

#

But got an error because the codegen actually requires dag.Wolfi().Container(WolfiContainerOpts{Package: []string{"openssh", "git"})

#

Which got me confused

#

@frail mural just to confirm, this is the expected behavior?