diff options
author | Brandon Lum <lumjjb@gmail.com> | 2022-07-19 16:43:48 -0400 |
---|---|---|
committer | Brandon Lum <lumjjb@gmail.com> | 2022-07-19 22:43:24 -0400 |
commit | 9ae1bd2f8e0dabb0845f1225b54f23e8f3a429f1 (patch) | |
tree | a43213aadfb9bde3d9ec15634a39305f19ff38b2 /idsearcher | |
parent | 41d2272711255f5a25e16e3507ec3318bc550189 (diff) | |
download | spdx-tools-9ae1bd2f8e0dabb0845f1225b54f23e8f3a429f1.tar.gz |
replace all v2_1, v2_2 with new convention
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
Diffstat (limited to 'idsearcher')
-rw-r--r-- | idsearcher/idsearcher.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/idsearcher/idsearcher.go b/idsearcher/idsearcher.go index bb8bbd1..29b0faa 100644 --- a/idsearcher/idsearcher.go +++ b/idsearcher/idsearcher.go @@ -14,7 +14,8 @@ import ( "strings" "github.com/spdx/tools-golang/builder" - "github.com/spdx/tools-golang/spdx" + "github.com/spdx/tools-golang/spdx/v2_1" + "github.com/spdx/tools-golang/spdx/v2_2" "github.com/spdx/tools-golang/utils" ) @@ -50,7 +51,7 @@ type Config2_1 struct { // - dirRoot: path to directory to be analyzed // - namespacePrefix: URI representing a prefix for the // namespace with which the SPDX Document will be associated -func BuildIDsDocument2_1(packageName string, dirRoot string, idconfig *Config2_1) (*spdx.Document2_1, error) { +func BuildIDsDocument2_1(packageName string, dirRoot string, idconfig *Config2_1) (*v2_1.Document, error) { // first, build the Document using builder bconfig := &builder.Config2_1{ NamespacePrefix: idconfig.NamespacePrefix, @@ -174,7 +175,7 @@ type Config2_2 struct { // - dirRoot: path to directory to be analyzed // - namespacePrefix: URI representing a prefix for the // namespace with which the SPDX Document will be associated -func BuildIDsDocument2_2(packageName string, dirRoot string, idconfig *Config2_2) (*spdx.Document2_2, error) { +func BuildIDsDocument2_2(packageName string, dirRoot string, idconfig *Config2_2) (*v2_2.Document, error) { // first, build the Document using builder bconfig := &builder.Config2_2{ NamespacePrefix: idconfig.NamespacePrefix, |