I'm trying to daggerize my current setup for a simple application. It uses Rust with HTMX and Tailwindcss for styling. In my tailwind.config.js, it uses content: ["./{src,assets}/**/*.{js,rs}"], to build the correct styles.css. I am now looking to create a function, sort of similar to my docker multistage build. Using the Dagger functions, I can see that almost all examples use *Directory , like:
func (m *App) BuildTailwind(
// Assets directory containing tailwind.css
assets *Directory,
// Rust src directory
src *Directory,
// Tailwind.config.js file path
tailwindConfigFile *File,
...
Since *Directory is also a requirement for WithMountedDirectory(path, *Directory, I am not really sure how I could hardcode or provide a default value - as default values only can be Go primitive types AFAIK. Is it possible to provide a default value either in the function itself or using parameter defaults?