Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LicenseText ¶
func LicenseText(text string, strictness Strictness) string
LicenseText makes a license text ready for analysis. It follows SPDX guidelines at https://spdx.org/spdx-license-list/matching-guidelines
Types ¶
type Strictness ¶
type Strictness int
Strictness represents the aggressiveness of the performed normalization. The bigger the number, the more aggressive. See `Enforced`, `Moderate` and `Relaxed`.
const ( // Enforced is the strictest mode - only the official SPDX guidelines are applied. Enforced Strictness = 0 // Moderate is equivalent to Enforced with some additional normalization: dots are removed, copyright lines too. Moderate Strictness = 1 // Relaxed is the most powerful normalization, Moderate + Unicode normalization and all non-alphanumeric chars removed. Relaxed Strictness = 2 )
Click to show internal directories.
Click to hide internal directories.