aboutsummaryrefslogtreecommitdiff
path: root/json/writer.go
diff options
context:
space:
mode:
Diffstat (limited to 'json/writer.go')
-rw-r--r--json/writer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/json/writer.go b/json/writer.go
index c598028..bcc00a7 100644
--- a/json/writer.go
+++ b/json/writer.go
@@ -6,11 +6,11 @@ import (
"encoding/json"
"io"
- "github.com/spdx/tools-golang/spdx"
+ "github.com/spdx/tools-golang/spdx/v2_2"
)
// Save2_2 takes an SPDX Document (version 2.2) and an io.Writer, and writes the document to the writer in JSON format.
-func Save2_2(doc *spdx.Document2_2, w io.Writer) error {
+func Save2_2(doc *v2_2.Document, w io.Writer) error {
buf, err := json.Marshal(doc)
if err != nil {
return err