From b8d0d0c3b6b2ffe40921aa4c247c101dd0ce958d Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 1 Jul 2023 22:10:22 +0800 Subject: Refactor: rename consts to follow Go idiom. Fix const comment style. --- danmaku/dmmsg/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'danmaku/dmmsg/util.go') diff --git a/danmaku/dmmsg/util.go b/danmaku/dmmsg/util.go index 9d41ab9..d38814b 100644 --- a/danmaku/dmmsg/util.go +++ b/danmaku/dmmsg/util.go @@ -9,7 +9,7 @@ func castValue[T any](obj interface{}) (thing T, err error) { casted, ok := (obj).(T) if !ok { err = fmt.Errorf("%s: required value is not of type \"%v\": %v", - kInvalidDanmakuJson, reflect.TypeOf(thing).String(), obj) + InvalidDanmakuJson, reflect.TypeOf(thing).String(), obj) return } thing = casted -- cgit v1.2.3