Skip to main content

Language Dependencies

Dagger Functions are just regular code, written in your usual 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 add and use these packages/modules as dependencies in your Dagger module via your language's package manager.

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

go get github.com/spf13/cobra