MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / WriteSpdx

Method WriteSpdx

opensca/model/spdx.go:81–87  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

79}
80
81func (doc *SpdxDocument) WriteSpdx(w io.Writer) error {
82 tmpl, err := template.New("tagValue").Parse(spdxtpl)
83 if err != nil {
84 return err
85 }
86 return tmpl.Execute(w, doc)
87}
88
89func assert(s string) string {
90 if s != "" {

Callers 1

SpdxFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected