From 7e3a22cfccbda131ebfb0d29e089a274950726ce Mon Sep 17 00:00:00 2001 From: CatalinStratu Date: Thu, 31 Mar 2022 03:30:42 +0300 Subject: examples: Add comments with sample run commands (#123) Signed-off-by: CatalinStratu --- examples/9-tvtojson/exampletvtojson.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/9-tvtojson') diff --git a/examples/9-tvtojson/exampletvtojson.go b/examples/9-tvtojson/exampletvtojson.go index 2c6ec7e..8ebac7c 100644 --- a/examples/9-tvtojson/exampletvtojson.go +++ b/examples/9-tvtojson/exampletvtojson.go @@ -4,7 +4,7 @@ // This example demonstrates loading an SPDX tag-value file from disk into memory, // and re-saving it to a different json file on disk. - +// Run project: go run exampletvtojson.go ../sample-docs/example1/spdx/SPDXTagExample-v2.2.spdx example.json package main import ( @@ -20,7 +20,7 @@ func main() { // check that we've received the right number of arguments args := os.Args if len(args) != 3 { - fmt.Printf("Usage: %v \n", args[0]) + fmt.Printf("Usage: %v \n", args[0]) fmt.Printf(" Load SPDX 2.2 tag-value file , and\n") fmt.Printf(" save it out to .\n") return -- cgit v1.2.3