Documentation ¶
Index ¶
Constants ¶
View Source
const AND = 57348
View Source
const IDENT = 57346
View Source
const OR = 57347
View Source
const WITH = 57349
Variables ¶
View Source
var (
ErrInvalidExpression = xerrors.New("invalid expression error")
)
Functions ¶
func NormalizeForSPDX ¶
NormalizeForSPDX replaces ' ' to '-' in license-id. SPDX license MUST NOT be white space between a license-id. There MUST be white space on either side of the operator "WITH". ref: https://spdx.github.io/spdx-spec/v2.3/SPDX-license-expressions
Types ¶
type CompoundExpr ¶
type CompoundExpr struct {
// contains filtered or unexported fields
}
func (CompoundExpr) String ¶
func (c CompoundExpr) String() string
type Expression ¶
type Expression interface {
String() string
}
type NormalizeFunc ¶
type SimpleExpr ¶
type SimpleExpr struct {
// contains filtered or unexported fields
}
func (SimpleExpr) String ¶
func (s SimpleExpr) String() string
Click to show internal directories.
Click to hide internal directories.