From 9da262c92189e4007834bf2023f0c032f2a1a0d9 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 29 Mar 2026 10:55:24 +0000 Subject: object{,/type}: Fix up API shape --- object/type/name.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'object/type/name.go') diff --git a/object/type/name.go b/object/type/name.go index 870ac1e4..d5636be9 100644 --- a/object/type/name.go +++ b/object/type/name.go @@ -7,8 +7,8 @@ const ( typeNameTag = "tag" ) -// ParseName parses a canonical Git object type name. -func ParseName(name string) (Type, bool) { +// Parse parses a canonical Git object type name. +func Parse(name string) (Type, bool) { switch name { case typeNameBlob: return TypeBlob, true @@ -24,7 +24,7 @@ func ParseName(name string) (Type, bool) { } // Name returns the canonical Git object type name. -func Name(ty Type) (string, bool) { +func (ty Type) Name() (string, bool) { switch ty { case TypeBlob: return typeNameBlob, true -- cgit v1.3.1-10-gc9f91