summaryrefslogtreecommitdiff
path: root/danmaku/dmmsg/util.go
diff options
context:
space:
mode:
authorKeuin <[email protected]>2023-07-01 22:10:22 +0800
committerKeuin <[email protected]>2023-07-01 22:10:44 +0800
commitb8d0d0c3b6b2ffe40921aa4c247c101dd0ce958d (patch)
treec14f512312a6ee2fab6bdaef7cb55dfedbf19262 /danmaku/dmmsg/util.go
parent8f07f6f4d7e91a9e4b7164a39759907fac5fb8a1 (diff)
Refactor: rename consts to follow Go idiom. Fix const comment style.
Diffstat (limited to 'danmaku/dmmsg/util.go')
-rw-r--r--danmaku/dmmsg/util.go2
1 files changed, 1 insertions, 1 deletions
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