diff options
author | RishabhBhatnagar <bhatnagarrishabh4@gmail.com> | 2020-01-09 20:39:55 +0530 |
---|---|---|
committer | RishabhBhatnagar <bhatnagarrishabh4@gmail.com> | 2020-01-09 21:04:37 +0530 |
commit | cd59ee66408a908f7ef94548814514f6bc9fc906 (patch) | |
tree | 550b146d4de0cc00a4784147f7d8f2a7bc93cffe /examples | |
parent | f4fef41a45620391fca6481f4700b89de170ab88 (diff) | |
download | spdx-tools-cd59ee66408a908f7ef94548814514f6bc9fc906.tar.gz |
Create Go Module
- Unpack directory v0 to move all the content to the root directory.
- ./v0/* converted to ./*
- all the test cases were fixed to remove one directory less indexing for test files
- add go.mod
- go version 1.13 is used to have a relatively stable versioning system
Signed-off-by: RishabhBhatnagar <bhatnagarrishabh4@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/1-load/example_load.go | 2 | ||||
-rw-r--r-- | examples/2-load-save/example_load_save.go | 4 | ||||
-rw-r--r-- | examples/3-build/example_build.go | 6 | ||||
-rw-r--r-- | examples/4-search/example_search.go | 8 | ||||
-rw-r--r-- | examples/5-report/example_report.go | 4 | ||||
-rw-r--r-- | examples/6-licensediff/example_licensediff.go | 4 |
6 files changed, 14 insertions, 14 deletions
diff --git a/examples/1-load/example_load.go b/examples/1-load/example_load.go index bd87d9a..7cc9575 100644 --- a/examples/1-load/example_load.go +++ b/examples/1-load/example_load.go @@ -11,7 +11,7 @@ import ( "fmt" "os" - "github.com/spdx/tools-golang/v0/tvloader" + "github.com/spdx/tools-golang/tvloader" ) func main() { diff --git a/examples/2-load-save/example_load_save.go b/examples/2-load-save/example_load_save.go index d415fcd..39ab501 100644 --- a/examples/2-load-save/example_load_save.go +++ b/examples/2-load-save/example_load_save.go @@ -11,8 +11,8 @@ import ( "fmt" "os" - "github.com/spdx/tools-golang/v0/tvloader" - "github.com/spdx/tools-golang/v0/tvsaver" + "github.com/spdx/tools-golang/tvloader" + "github.com/spdx/tools-golang/tvsaver" ) func main() { diff --git a/examples/3-build/example_build.go b/examples/3-build/example_build.go index 7bb2146..64d6eb0 100644 --- a/examples/3-build/example_build.go +++ b/examples/3-build/example_build.go @@ -12,8 +12,8 @@ import ( "fmt" "os" - "github.com/spdx/tools-golang/v0/builder" - "github.com/spdx/tools-golang/v0/tvsaver" + "github.com/spdx/tools-golang/builder" + "github.com/spdx/tools-golang/tvsaver" ) func main() { @@ -56,7 +56,7 @@ func main() { // note that builder will also add the following, in addition to the // Creator defined above: - // Creator: Tool: github.com/spdx/tools-golang/v0/builder + // Creator: Tool: github.com/spdx/tools-golang/builder // Finally, you can define one or more paths that should be ignored // when walking through the directory. This is intended to omit files diff --git a/examples/4-search/example_search.go b/examples/4-search/example_search.go index c5d4854..4a983e4 100644 --- a/examples/4-search/example_search.go +++ b/examples/4-search/example_search.go @@ -14,9 +14,9 @@ import ( "fmt" "os" - "github.com/spdx/tools-golang/v0/idsearcher" + "github.com/spdx/tools-golang/idsearcher" - "github.com/spdx/tools-golang/v0/tvsaver" + "github.com/spdx/tools-golang/tvsaver" ) func main() { @@ -52,8 +52,8 @@ func main() { // CreatorType and Creator, from builder.Config2_1, are not needed for // idsearcher.Config. Because it is automated and doesn't assume // further review, the following two Creator fields are filled in: - // Creator: Tool: github.com/spdx/tools-golang/v0/builder - // Creator: Tool: github.com/spdx/tools-golang/v0/idsearcher + // Creator: Tool: github.com/spdx/tools-golang/builder + // Creator: Tool: github.com/spdx/tools-golang/idsearcher // You can define one or more paths that should be ignored // when walking through the directory. This is intended to omit files diff --git a/examples/5-report/example_report.go b/examples/5-report/example_report.go index fa295ce..fff3439 100644 --- a/examples/5-report/example_report.go +++ b/examples/5-report/example_report.go @@ -12,8 +12,8 @@ import ( "fmt" "os" - "github.com/spdx/tools-golang/v0/reporter" - "github.com/spdx/tools-golang/v0/tvloader" + "github.com/spdx/tools-golang/reporter" + "github.com/spdx/tools-golang/tvloader" ) func main() { diff --git a/examples/6-licensediff/example_licensediff.go b/examples/6-licensediff/example_licensediff.go index 435fc7c..3a7b401 100644 --- a/examples/6-licensediff/example_licensediff.go +++ b/examples/6-licensediff/example_licensediff.go @@ -14,8 +14,8 @@ import ( "fmt" "os" - "github.com/spdx/tools-golang/v0/licensediff" - "github.com/spdx/tools-golang/v0/tvloader" + "github.com/spdx/tools-golang/licensediff" + "github.com/spdx/tools-golang/tvloader" ) func main() { |