diff options
author | Ian Ling <ian@iancaling.com> | 2022-04-08 08:52:57 -0700 |
---|---|---|
committer | CatalinStratu <catalinstratu45@gmail.com> | 2022-05-05 09:38:40 +0300 |
commit | 48ae051e2d5511ba49e046bf87fa92ad62cd54d2 (patch) | |
tree | 28053dedab0877fac140c262d80133fd6f45a72c /examples/9-tvtojson | |
parent | c1d7b0ca4601ec287a997a3b9ad65da0d67b8cd5 (diff) | |
download | spdx-tools-48ae051e2d5511ba49e046bf87fa92ad62cd54d2.tar.gz |
Overhaul structs, refactor JSON parser and saver
Signed-off-by: Ian Ling <ian@iancaling.com>
Signed-off-by: CatalinStratu <catalinstratu45@gmail.com>
Diffstat (limited to 'examples/9-tvtojson')
-rw-r--r-- | examples/9-tvtojson/exampletvtojson.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/9-tvtojson/exampletvtojson.go b/examples/9-tvtojson/exampletvtojson.go index e75afc4..fac1c98 100644 --- a/examples/9-tvtojson/exampletvtojson.go +++ b/examples/9-tvtojson/exampletvtojson.go @@ -11,7 +11,7 @@ import ( "fmt" "os" - "github.com/spdx/tools-golang/jsonsaver" + "github.com/spdx/tools-golang/json" "github.com/spdx/tools-golang/tvloader" ) @@ -57,7 +57,7 @@ func main() { defer w.Close() // try to save the document to disk as an SPDX json file, version 2.2 - err = jsonsaver.Save2_2(doc, w) + err = spdx_json.Save2_2(doc, w) if err != nil { fmt.Printf("Error while saving %v: %v", fileOut, err) return |