Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
  • Loading branch information
TG1999 committed Mar 12, 2024
1 parent 748cc8a commit b04199b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

Next Release (2024-02-29)
-------------------------

- Add support to get PackageURL from ``go_package`` or
go module "name version" string as seen in a go.mod file.


0.14.0 (2024-02-29)
-------------------

Expand Down
1 change: 1 addition & 0 deletions src/packageurl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
def get_golang_purl(go_package: str):
"""
Return a PackageURL object given an imported ``go_package``
or go module "name version" string as seen in a go.mod file.
>>> get_golang_purl(go_package="github.com/gorilla/mux v1.8.1")
PackageURL(type='golang', namespace='github.com/gorilla', name='mux', version='v1.8.1', qualifiers={}, subpath=None)
"""
Expand Down

0 comments on commit b04199b

Please sign in to comment.