#Does anyone have an example of using the
1 messages · Page 1 of 1 (latest)
All of my modules use constructors now. Previously, I used the From* pattern to initialize my modules, but that always required an extra layer to keep things consistent.
The constructor feature allowed me to simplify things a lot.
Check any modules here: https://github.com/sagikazarmark/daggerverse/
golangci-lint is a bit more complex than the rest. I kinda wish passing a module to another as an input argument was possible (eg. pass a Go module to GolangciLint).
Interfaces may help, but it's going to be a lot of extra coding :/ cc @frail bough