Nathan Youngman
2ed03dbf05
revisions based on @niemeyer's review
9 years ago
Nathan Youngman
06fff2f2c8
add a few comments
9 years ago
Gustavo Niemeyer
f9c08a5b59
Fix Version.IsValid.
Fixes #15 .
10 years ago
GeertJohan
7f05a9823c
Use one-line formatting for VersionList sort.Interface implementations
10 years ago
GeertJohan
f2f6cbda4e
Add interface page.
Add VersionList ([]Version) implementing sort.Interface.
Changed hackedRefs to also return a VersionList holding all valid versions for a repo.
Change Repo struct to hold parts and added methods to construct useful strings from those parts.
Comment out the whole nameHasversion() thingie. It was noted as obsolte made it harder to create clean Repo struct.
10 years ago
GeertJohan
ed9d42974f
Check for integer overflow in parseVersionPart
10 years ago
GeertJohan
8be904041c
Revert "Use strconv and strings to parse version string."
This reverts commit 517a7be269
.
10 years ago
GeertJohan
d25e20e4a7
Revert "Send nice error when version number is out of range"
This reverts commit f4151cb744
.
10 years ago
GeertJohan
2d60a9d54d
Revert "Fix parsing return values for zero parts, and allow zero when len(part) == 1"
This reverts commit fd83e1645f
.
10 years ago
GeertJohan
fd83e1645f
Fix parsing return values for zero parts, and allow zero when len(part) == 1
10 years ago
GeertJohan
f4151cb744
Send nice error when version number is out of range
10 years ago
GeertJohan
517a7be269
Use strconv and strings to parse version string.
By using strconv, value out of range problems are catched and a
version part thats too high will not cause trouble.
10 years ago
Gustavo Niemeyer
0f1e91a464
Add version files.
10 years ago