mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
14 lines
482 B
Go
14 lines
482 B
Go
package model
|
|
|
|
import "github.com/anchore/syft/internal/formats/common/spdxhelpers"
|
|
|
|
// ElementID represents the identifier string portion of an SPDX element
|
|
// identifier. DocElementID should be used for any attributes which can
|
|
// contain identifiers defined in a different SPDX document.
|
|
// ElementIDs should NOT contain the mandatory 'SPDXRef-' portion.
|
|
type ElementID string
|
|
|
|
func (e ElementID) String() string {
|
|
return "SPDXRef-" + spdxhelpers.SanitizeElementID(string(e))
|
|
}
|