From 3239f491b80a210772dfb2f828a7de45fa5a13c1 Mon Sep 17 00:00:00 2001 From: Keith Zantow Date: Tue, 17 Jan 2023 13:25:00 -0500 Subject: [PATCH] chore: remove incorrect comments from examples Signed-off-by: Keith Zantow --- examples/1-load/example_load.go | 4 ++-- examples/10-jsonloader/example_json_loader.go | 4 ++-- examples/11-yamltotv/exampleyamltotv.go | 2 +- examples/12-tvtoyaml/exampletvtoyaml.go | 2 +- examples/13-yamlloader/exampleYAMLLoader.go | 4 ++-- examples/2-load-save/example_load_save.go | 6 +++--- examples/3-build/example_build.go | 2 +- examples/4-search/example_search.go | 2 +- examples/5-report/example_report.go | 4 ++-- examples/6-licensediff/example_licensediff.go | 6 +++--- examples/8-jsontotv/examplejsontotv.go | 4 ++-- examples/9-tvtojson/exampletvtojson.go | 4 ++-- 12 files changed, 22 insertions(+), 22 deletions(-) diff --git a/examples/1-load/example_load.go b/examples/1-load/example_load.go index bb6a25a..3d19a04 100644 --- a/examples/1-load/example_load.go +++ b/examples/1-load/example_load.go @@ -22,7 +22,7 @@ func main() { args := os.Args if len(args) != 2 { fmt.Printf("Usage: %v \n", args[0]) - fmt.Printf(" Load SPDX 2.2 tag-value file , and\n") + fmt.Printf(" Load SPDX tag-value file , and\n") fmt.Printf(" print a portion of its contents.\n") return } @@ -36,7 +36,7 @@ func main() { } defer r.Close() - // try to load the SPDX file's contents as a tag-value file, version 2.2 + // try to load the SPDX file's contents as a tag-value file doc, err := tagvalue.Read(r) if err != nil { fmt.Printf("Error while parsing %v: %v", filename, err) diff --git a/examples/10-jsonloader/example_json_loader.go b/examples/10-jsonloader/example_json_loader.go index 7e7ca04..8ecf173 100644 --- a/examples/10-jsonloader/example_json_loader.go +++ b/examples/10-jsonloader/example_json_loader.go @@ -21,7 +21,7 @@ func main() { args := os.Args if len(args) != 2 { fmt.Printf("Usage: %v \n", args[0]) - fmt.Printf(" Load SPDX 2.2 JSON file , and\n") + fmt.Printf(" Load SPDX JSON file , and\n") fmt.Printf(" print portions of its creation info data.\n") return } @@ -35,7 +35,7 @@ func main() { } defer r.Close() - // try to load the SPDX file's contents as a json file, version 2.2 + // try to load the SPDX file's contents as a json file doc, err := json.Read(r) if err != nil { fmt.Printf("Error while parsing %v: %v", args[1], err) diff --git a/examples/11-yamltotv/exampleyamltotv.go b/examples/11-yamltotv/exampleyamltotv.go index 2f1ff56..bb46302 100644 --- a/examples/11-yamltotv/exampleyamltotv.go +++ b/examples/11-yamltotv/exampleyamltotv.go @@ -57,7 +57,7 @@ func main() { } defer w.Close() - // try to save the document to disk as an SPDX tag-value file, version 2.2 + // try to save the document to disk as an SPDX tag-value file err = tagvalue.Write(doc, w) if err != nil { fmt.Printf("Error while saving %v: %v", fileOut, err) diff --git a/examples/12-tvtoyaml/exampletvtoyaml.go b/examples/12-tvtoyaml/exampletvtoyaml.go index bcadabe..baef147 100644 --- a/examples/12-tvtoyaml/exampletvtoyaml.go +++ b/examples/12-tvtoyaml/exampletvtoyaml.go @@ -21,7 +21,7 @@ func main() { args := os.Args if len(args) != 3 { fmt.Printf("Usage: %v \n", args[0]) - fmt.Printf(" Load SPDX 2.2 tag-value file , and\n") + fmt.Printf(" Load SPDX tag-value file , and\n") fmt.Printf(" save it out to .\n") return } diff --git a/examples/13-yamlloader/exampleYAMLLoader.go b/examples/13-yamlloader/exampleYAMLLoader.go index 9126204..4255253 100644 --- a/examples/13-yamlloader/exampleYAMLLoader.go +++ b/examples/13-yamlloader/exampleYAMLLoader.go @@ -21,7 +21,7 @@ func main() { args := os.Args if len(args) != 2 { fmt.Printf("Usage: %v \n", args[0]) - fmt.Printf(" Load SPDX 2.2 JSON file , and\n") + fmt.Printf(" Load SPDX JSON file , and\n") fmt.Printf(" print portions of its creation info data.\n") return } @@ -35,7 +35,7 @@ func main() { } defer r.Close() - // try to load the SPDX file's contents as a json file, version 2.2 + // try to load the SPDX file's contents as a json file doc, err := yaml.Read(r) if err != nil { fmt.Printf("Error while parsing %v: %v", args[1], err) diff --git a/examples/2-load-save/example_load_save.go b/examples/2-load-save/example_load_save.go index 30ae4af..72fefc5 100644 --- a/examples/2-load-save/example_load_save.go +++ b/examples/2-load-save/example_load_save.go @@ -21,7 +21,7 @@ func main() { args := os.Args if len(args) != 3 { fmt.Printf("Usage: %v \n", args[0]) - fmt.Printf(" Load SPDX 2.2 tag-value file , and\n") + fmt.Printf(" Load SPDX tag-value file , and\n") fmt.Printf(" save it out to .\n") return } @@ -35,7 +35,7 @@ func main() { } defer r.Close() - // try to load the SPDX file's contents as a tag-value file, version 2.2 + // try to load the SPDX file's contents as a tag-value file doc, err := tagvalue.Read(r) if err != nil { fmt.Printf("Error while parsing %v: %v", fileIn, err) @@ -56,7 +56,7 @@ func main() { } defer w.Close() - // try to save the document to disk as an SPDX tag-value file, version 2.2 + // try to save the document to disk as an SPDX tag-value file err = tagvalue.Write(doc, w) if err != nil { fmt.Printf("Error while saving %v: %v", fileOut, err) diff --git a/examples/3-build/example_build.go b/examples/3-build/example_build.go index 5a7af11..2884837 100644 --- a/examples/3-build/example_build.go +++ b/examples/3-build/example_build.go @@ -23,7 +23,7 @@ func main() { args := os.Args if len(args) != 4 { fmt.Printf("Usage: %v \n", args[0]) - fmt.Printf(" Build a SPDX 2.2 document with one package called ;\n") + fmt.Printf(" Build a SPDX document with one package called ;\n") fmt.Printf(" create files with hashes corresponding to the files in ;\n") fmt.Printf(" and save it out as a tag-value file to .\n") return diff --git a/examples/4-search/example_search.go b/examples/4-search/example_search.go index f5dd0ae..ec8024d 100644 --- a/examples/4-search/example_search.go +++ b/examples/4-search/example_search.go @@ -25,7 +25,7 @@ func main() { args := os.Args if len(args) != 4 { fmt.Printf("Usage: %v \n", args[0]) - fmt.Printf(" Build a SPDX 2.2 document with one package called ;\n") + fmt.Printf(" Build a SPDX document with one package called ;\n") fmt.Printf(" create files with hashes corresponding to the files in ;\n") fmt.Printf(" search for SPDX short-form IDs, and use them to fill in license data\n") fmt.Printf(" where possible; and save it out as a tag-value file to .\n") diff --git a/examples/5-report/example_report.go b/examples/5-report/example_report.go index ce930df..fa5a474 100644 --- a/examples/5-report/example_report.go +++ b/examples/5-report/example_report.go @@ -23,7 +23,7 @@ func main() { args := os.Args if len(args) != 2 { fmt.Printf("Usage: %v \n", args[0]) - fmt.Printf(" Load SPDX 2.2 tag-value file , and\n") + fmt.Printf(" Load SPDX tag-value file , and\n") fmt.Printf(" generate and print a report of its concluded licenses.\n") return } @@ -37,7 +37,7 @@ func main() { } defer r.Close() - // try to load the SPDX file's contents as a tag-value file, version 2.2 + // try to load the SPDX file's contents as a tag-value file doc, err := tagvalue.Read(r) if err != nil { fmt.Printf("Error while parsing %v: %v", filename, err) diff --git a/examples/6-licensediff/example_licensediff.go b/examples/6-licensediff/example_licensediff.go index 9abbcd1..bff1c8d 100644 --- a/examples/6-licensediff/example_licensediff.go +++ b/examples/6-licensediff/example_licensediff.go @@ -27,7 +27,7 @@ func main() { args := os.Args if len(args) != 3 { fmt.Printf("Usage: %v \n", args[0]) - fmt.Printf(" Load SPDX 2.2 tag-value files and ,\n") + fmt.Printf(" Load SPDX tag-value files and ,\n") fmt.Printf(" run a diff between their concluded licenses, and print basic results.\n") return } @@ -41,7 +41,7 @@ func main() { } defer r.Close() - // try to load the first SPDX file's contents as a tag-value file, version 2.2 + // try to load the first SPDX file's contents as a tag-value file docFirst, err := tagvalue.Read(r) if err != nil { fmt.Printf("Error while parsing %v: %v", filenameFirst, err) @@ -66,7 +66,7 @@ func main() { } defer r.Close() - // try to load the second SPDX file's contents as a tag-value file, version 2.2 + // try to load the second SPDX file's contents as a tag-value file docSecond, err := tagvalue.Read(r) if err != nil { fmt.Printf("Error while parsing %v: %v", filenameSecond, err) diff --git a/examples/8-jsontotv/examplejsontotv.go b/examples/8-jsontotv/examplejsontotv.go index 08e3ad5..c5f6f32 100644 --- a/examples/8-jsontotv/examplejsontotv.go +++ b/examples/8-jsontotv/examplejsontotv.go @@ -35,7 +35,7 @@ func main() { } defer r.Close() - // try to load the SPDX file's contents as a json file, version 2.2 + // try to load the SPDX file's contents as a json file doc, err := json.Read(r) if err != nil { fmt.Printf("Error while parsing %v: %v", args[1], err) @@ -56,7 +56,7 @@ func main() { } defer w.Close() - // try to save the document to disk as an SPDX tag-value file, version 2.2 + // try to save the document to disk as an SPDX tag-value file err = tagvalue.Write(doc, w) if err != nil { fmt.Printf("Error while saving %v: %v", fileOut, err) diff --git a/examples/9-tvtojson/exampletvtojson.go b/examples/9-tvtojson/exampletvtojson.go index afda091..5e62561 100644 --- a/examples/9-tvtojson/exampletvtojson.go +++ b/examples/9-tvtojson/exampletvtojson.go @@ -21,7 +21,7 @@ func main() { args := os.Args if len(args) != 3 { fmt.Printf("Usage: %v \n", args[0]) - fmt.Printf(" Load SPDX 2.2 tag-value file , and\n") + fmt.Printf(" Load SPDX tag-value file , and\n") fmt.Printf(" save it out to JSON .\n") return } @@ -35,7 +35,7 @@ func main() { } defer r.Close() - // try to load the SPDX file's contents as a tag-value file, version 2.2 + // try to load the SPDX file's contents as a tag-value file doc, err := tagvalue.Read(r) if err != nil { fmt.Printf("Error while parsing %v: %v", args[1], err)