blob: 9e7401c7376138e7056ed5eee48d86341dbf75d6 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
|
package id
// ParseObjectFormat parses a canonical object format name (e.g. "sha1", "sha256").
func ParseObjectFormat(s string) (ObjectFormat, bool) {
objectFormat, ok := objectFormatByName[s]
return objectFormat, ok
}
|