chore: add String method for hand type

This commit is contained in:
Eli Yip 2025-05-28 09:45:01 +08:00
parent 2893f3cc56
commit a8a8821489
No known key found for this signature in database
GPG Key ID: C98B69D4CF7D7EC5

View File

@ -6,3 +6,10 @@ const (
HAND_TYPE_LEFT HandType = 0x28
HAND_TYPE_RIGHT HandType = 0x27
)
func (ht HandType) String() string {
if ht == HAND_TYPE_LEFT {
return "左手"
}
return "右手"
}