fix: resolve build errors after merge (types, config, logic)

This commit is contained in:
2025-12-28 17:25:11 -08:00
parent d94cbc09b0
commit 615b87ef26
7 changed files with 64 additions and 11 deletions
+4
View File
@@ -56,6 +56,10 @@ func parseDefaultValue(kind reflect.Kind, defaultValue string) any {
var i uint32
_, _ = fmt.Sscanf(defaultValue, "%d", &i)
return i
case reflect.Uint8:
var i uint8
_, _ = fmt.Sscanf(defaultValue, "%d", &i)
return i
default:
fmt.Printf("类型 %v 没有处理, 值为: %v \n", kind, defaultValue)
panic("unhandled default case")