forked from TrueCloudLab/distribution
552b1526c6
- use strings.HasPrefix() to check for the prefix we're interested in instead of doing a strings.Split() without limits. This makes the code both easier to read, and prevents potential situations where we end up with a long slice. - use consts for defaults; these should never be modified, so better to use consts for them to indicate they're fixed values. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
fuzz.go | ||
helpers.go | ||
normalize.go | ||
normalize_test.go | ||
reference.go | ||
reference_test.go | ||
regexp.go | ||
regexp_test.go | ||
sort.go | ||
sort_test.go |