ollama/types/model
Blake Mizerany 9bee3b63b1
types/model: add path helpers (#3619)
This commit adds path helpers for working with Names in URL and file
paths. The new helpers are ParseNameFromPath, ParseNameFromFilePath,
Name.Path, and Name.FilePath.

This commit also adds Name.DisplayLongest, and Name.DisplayLong.

Also, be it updates a place where strings.StripPrefix is more consistent
with the surrounding code.

Also, replace Parts with specific methods
2024-04-13 12:59:19 -07:00
..
testdata/fuzz/FuzzParseRef types/model: init with Name and Digest types (#3541) 2024-04-10 16:30:05 -07:00
digest.go types/model: remove (*Digest).Scan and Digest.Value (#3605) 2024-04-11 13:32:31 -07:00
digest_test.go types/model: init with Name and Digest types (#3541) 2024-04-10 16:30:05 -07:00
name.go types/model: add path helpers (#3619) 2024-04-13 12:59:19 -07:00
name_test.go types/model: add path helpers (#3619) 2024-04-13 12:59:19 -07:00