Skip to main content

Third-Party Packages

Dagger Functions are just regular code, written in your usual programming language. One of the key advantages of this approach is that it opens up access to your language's existing ecosystem of packages or modules. You can easily import these packages/modules in your Dagger module via your language's package manager.

To add a Go module, add it to your go.mod file using go get. For example:

go get github.com/spf13/cobra