6694cfaa0e
The logic for what constitutes a valid hash and how different hash schemes are represented was starting to get sprawled over many different files and packages. Consistently with other cases where we've used named types to gather the definition of a particular string into a single place and have the Go compiler help us use it properly, this introduces both getproviders.Hash representing a hash value and getproviders.HashScheme representing the idea of a particular hash scheme. Most of this changeset is updating existing uses of primitive strings to uses of getproviders.Hash. The new type definitions are in internal/getproviders/hash.go. |
||
---|---|---|
.. | ||
testdata/locks-files | ||
doc.go | ||
locks.go | ||
locks_file.go | ||
locks_file_test.go | ||
paths.go |