Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CopyrightConfig ¶
type CopyrightConfig struct {
Licenses []license.License
Diffs []license.LicenseDiff
Format string // "simple" or "flat"
}
CopyrightConfig contains the configuration data for a copyright update renovator.
type Option ¶
type Option func(cfg *CopyrightConfig) error
Option sets a config option on a CopyrightConfig.
func WithDiffs ¶ added in v0.24.0
func WithDiffs(diffs []license.LicenseDiff) Option
WithLicenses sets the differences to consider for the renovator.
func WithFormat ¶ added in v0.29.1
WithFormat sets whether the copyright should be populated with a single node containing all detected licenses joined together (simple), or with multiple nodes, one per license (flat).
func WithLicenses ¶
WithTargetVersion sets the licenses to be used for the renovator.
Click to show internal directories.
Click to hide internal directories.