Versions in this module Expand all Collapse all v0 v0.1.0 Aug 8, 2026 Changes in this version + const ContextURL301 + type Context struct + func NewContext(url string) Context + func (c *Context) UnmarshalJSON(data []byte) error + func (c Context) MarshalJSON() ([]byte, error) + func (c Context) String() string + func (c Context) URLs() []string + func (c Context) Version() string + type Envelope struct + Context Context + Graph Graph + func NewEnvelope() *Envelope + func (e *Envelope) UnmarshalJSON(data []byte) error + type Finding struct + Message string + NodeID string + NodeType string + Property string + Value string + func Validate(env *Envelope) []Finding + func (f Finding) String() string + type Graph []types.Node + func (g *Graph) AddNode(nodes ...types.Node) + func (g *Graph) Relate(spdxID string, from types.Node, relType core.RelationshipType, ...) *core.Relationship + func (g *Graph) SetCreationInfo(creation *core.CreationInfo) + func (g *Graph) UnmarshalJSON(data []byte) error + func (g Graph) MarshalJSON() ([]byte, error) + type Parser struct + func NewParser(opts ...ParserOption) *Parser + func (p *Parser) Parse(r io.Reader) (*Envelope, error) + type ParserOption func(*Parser) + func WithInvalidVocabularyValues() ParserOption + type Profile interface + Prefix func() string + type Renderer struct + func (r *Renderer) Render(env *Envelope, w io.Writer) error