blob: 0ba067002d9ba44ddb2e0c8069c656353eda928e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package saver2v1
import (
"fmt"
"io"
"github.com/spdx/tools-golang/spdx"
)
func renderRelationship2_1(rln *spdx.Relationship2_1, w io.Writer) error {
if rln.RefA != "" && rln.RefB != "" && rln.Relationship != "" {
fmt.Fprintf(w, "Relationship: %s %s %s\n", rln.RefA, rln.Relationship, rln.RefB)
}
if rln.RelationshipComment != "" {
fmt.Fprintf(w, "RelationshipComment: %s\n", rln.RelationshipComment)
}
return nil
}
|