diff options
author | Steve Winslow <swinslow@gmail.com> | 2019-01-12 13:53:39 -0500 |
---|---|---|
committer | Steve Winslow <swinslow@gmail.com> | 2019-01-12 13:53:39 -0500 |
commit | d14ba1b6dac5bb96fa8a3cae0a427199099b257b (patch) | |
tree | fdc7a340d82b3f44f5830866f708f5161e2c1ca6 /examples | |
parent | 26a14bdffb577e7f84597e2a175a5f3eee7c231c (diff) | |
download | spdx-tools-d14ba1b6dac5bb96fa8a3cae0a427199099b257b.tar.gz |
Updated imports and docs for spdx/tools-golang
Signed-off-by: Steve Winslow <swinslow@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 | ||||
-rw-r--r-- | examples/README.md | 5 |
7 files changed, 17 insertions, 16 deletions
diff --git a/examples/1-load/example_load.go b/examples/1-load/example_load.go index 994f7f7..bd87d9a 100644 --- a/examples/1-load/example_load.go +++ b/examples/1-load/example_load.go @@ -11,7 +11,7 @@ import ( "fmt" "os" - "github.com/swinslow/spdx-go/v0/tvloader" + "github.com/spdx/tools-golang/v0/tvloader" ) func main() { diff --git a/examples/2-load-save/example_load_save.go b/examples/2-load-save/example_load_save.go index 4a5cfc6..d415fcd 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/swinslow/spdx-go/v0/tvloader" - "github.com/swinslow/spdx-go/v0/tvsaver" + "github.com/spdx/tools-golang/v0/tvloader" + "github.com/spdx/tools-golang/v0/tvsaver" ) func main() { diff --git a/examples/3-build/example_build.go b/examples/3-build/example_build.go index 5ddafdd..7bb2146 100644 --- a/examples/3-build/example_build.go +++ b/examples/3-build/example_build.go @@ -12,8 +12,8 @@ import ( "fmt" "os" - "github.com/swinslow/spdx-go/v0/builder" - "github.com/swinslow/spdx-go/v0/tvsaver" + "github.com/spdx/tools-golang/v0/builder" + "github.com/spdx/tools-golang/v0/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/swinslow/spdx-go/v0/builder + // Creator: Tool: github.com/spdx/tools-golang/v0/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 0abbf7e..c5d4854 100644 --- a/examples/4-search/example_search.go +++ b/examples/4-search/example_search.go @@ -14,9 +14,9 @@ import ( "fmt" "os" - "github.com/swinslow/spdx-go/v0/idsearcher" + "github.com/spdx/tools-golang/v0/idsearcher" - "github.com/swinslow/spdx-go/v0/tvsaver" + "github.com/spdx/tools-golang/v0/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/swinslow/spdx-go/v0/builder - // Creator: Tool: github.com/swinslow/spdx-go/v0/idsearcher + // Creator: Tool: github.com/spdx/tools-golang/v0/builder + // Creator: Tool: github.com/spdx/tools-golang/v0/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 5506a68..fa295ce 100644 --- a/examples/5-report/example_report.go +++ b/examples/5-report/example_report.go @@ -12,8 +12,8 @@ import ( "fmt" "os" - "github.com/swinslow/spdx-go/v0/reporter" - "github.com/swinslow/spdx-go/v0/tvloader" + "github.com/spdx/tools-golang/v0/reporter" + "github.com/spdx/tools-golang/v0/tvloader" ) func main() { diff --git a/examples/6-licensediff/example_licensediff.go b/examples/6-licensediff/example_licensediff.go index d7ff562..435fc7c 100644 --- a/examples/6-licensediff/example_licensediff.go +++ b/examples/6-licensediff/example_licensediff.go @@ -14,8 +14,8 @@ import ( "fmt" "os" - "github.com/swinslow/spdx-go/v0/licensediff" - "github.com/swinslow/spdx-go/v0/tvloader" + "github.com/spdx/tools-golang/v0/licensediff" + "github.com/spdx/tools-golang/v0/tvloader" ) func main() { diff --git a/examples/README.md b/examples/README.md index 19a58b9..26c6fe4 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,8 +1,9 @@ SPDX-License-Identifier: CC-BY-4.0 -# spdx-go Examples +# tools-golang Examples -The `examples/` directory contains examples for how to use the various spdx-go sub-packages. +The `examples/` directory contains examples for how to use the various +tools-golang sub-packages. ## 1-load/ |