diff options
author | Brandon Lum <lumjjb@gmail.com> | 2022-07-19 16:43:48 -0400 |
---|---|---|
committer | Brandon Lum <lumjjb@gmail.com> | 2022-07-19 22:43:24 -0400 |
commit | 9ae1bd2f8e0dabb0845f1225b54f23e8f3a429f1 (patch) | |
tree | a43213aadfb9bde3d9ec15634a39305f19ff38b2 /json/writer.go | |
parent | 41d2272711255f5a25e16e3507ec3318bc550189 (diff) | |
download | spdx-tools-9ae1bd2f8e0dabb0845f1225b54f23e8f3a429f1.tar.gz |
replace all v2_1, v2_2 with new convention
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
Diffstat (limited to 'json/writer.go')
-rw-r--r-- | json/writer.go | 4 |
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 |