distribution/reference
Sebastiaan van Stijn 226b21beb6
reference: make some regexp vars a const, remove intermediate vars
This patch:

- makes regexp strings that are constant a const
- moves some variables closer to where they're used
- removes some intermediate vars
- un-wraps some lines; they're lengthy, but probably more readable than having
  them wrapped over multiple lines.
- touches-up some docs.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-11-20 15:07:24 +01:00
..
fuzz.go format code with gofumpt 2022-11-03 22:48:20 +01:00
helpers.go reference: ParseDockerRef: slight refactor, and update docs 2022-11-20 15:07:24 +01:00
normalize.go reference: document consts for normalizing and legacy domain 2022-11-20 15:07:24 +01:00
normalize_test.go reference: run tests with t.Parallel() 2022-11-18 21:17:56 +01:00
reference.go reference: ParseDockerRef: slight refactor, and update docs 2022-11-20 15:07:24 +01:00
reference_test.go reference: run tests with t.Parallel() 2022-11-18 21:17:56 +01:00
regexp.go reference: make some regexp vars a const, remove intermediate vars 2022-11-20 15:07:24 +01:00
regexp_test.go reference: run tests with t.Parallel() 2022-11-18 21:17:56 +01:00
sort.go reference: ParseDockerRef: slight refactor, and update docs 2022-11-20 15:07:24 +01:00
sort_test.go reference: run tests with t.Parallel() 2022-11-18 21:17:56 +01:00