go-rpm-version icon indicating copy to clipboard operation
go-rpm-version copied to clipboard

Expose Version creation

Open pschou opened this issue 1 year ago • 2 comments

Issue: We need the ability to manually define the elements of the structure.

Description of changes: Adds the ability to create a Version with pre-defined values NewVersionWithValues. User's are expected to provide valid input to have valid results.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

pschou avatar Dec 28 '23 13:12 pschou

The best way is renaming NewVersion to Parse and NewVersionWithValues to NewVersion, but it is a breaking change.

knqyf263 avatar Dec 29 '23 05:12 knqyf263

Yup, I thought the same thing.

pschou avatar Dec 29 '23 10:12 pschou