WithPackage
Method
func (PerlAppResource) WithPackage( packageName string, options ...*WithPackageOptions,) PerlAppResourceSignature
method
WithPackage builderAdds a Perl package (module) to be installed before the application starts. Uses the configured package manager: cpan by default, or cpanm if
WithCpanMinus was called.WithPackage( packageName string, options ...*WithPackageOptions,) PerlAppResourceParameters
packageName stringThe name of the Perl module to install (e.g., "Mojolicious", "DBI").options...*WithPackageOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithPackageOptions argument.
Force*boolIf true, force installation even if the module is already installed or tests fail.SkipTest *boolIf true, skip running tests during installation.Returns
PerlAppResource A reference to the I.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: