gocsaf / csaf

Tools to download or provide CSAF (Common Security Advisory Framework) documents.
https://csaf.io
40 stars 23 forks source link

Go-Library: test and create version-strings #562

Open JanHoefelmeyer opened 3 months ago

JanHoefelmeyer commented 3 months ago

As defined via https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#31232-branches-type---name-under-product-version-range.

The go-library should be able to test a string representing a version range for validity and create a valid version-range-representing string. This would e.g. allow it to be added to a document via the functions implemented in https://github.com/csaf-poc/csaf_distribution/issues/561